File: dns.t

package info (click to toggle)
libmail-checkuser-perl 1.24-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 192 kB
  • sloc: perl: 433; makefile: 6
file content (21 lines) | stat: -rwxr-xr-x 473 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use Mail::CheckUser qw(check_email);

require './t/check.pl';

# network test (SMTP check disabled)
$Mail::CheckUser::Skip_Network_Checks = 0;
$Mail::CheckUser::Skip_SMTP_Checks = 1;
$Mail::CheckUser::Timeout = 120;

@ok_emails = qw(m_ilya@agava.com m_ilya@hotmail.com);
@bad_emails = qw(unknown@for.bar);

start(scalar(@ok_emails) + scalar(@bad_emails));

foreach my $email (@ok_emails) {
	run_test($email, 0);
}

foreach my $email (@bad_emails) {
	run_test($email, 1);
}