9
BEGIN {$tests = 6; plan tests => $tests}
15
my $udp_hostname=get_option("udp_hostname","UDP host name");
19
$cmd = "./check_time -H $udp_hostname -w 999999,59 -c 999999,59 -t 60";
22
print "Test was: $cmd\n" if ($?);
23
$t += ok $str, '/^TIME OK - [0-9]+ second time difference$/';
25
$cmd = "./check_time -H $udp_hostname -w 999999 -W 59 -c 999999 -C 59 -t 60";
28
print "Test was: $cmd\n" if ($?);
29
$t += ok $str, '/^TIME OK - [0-9]+ second time difference$/';
31
# reverse compatibility mode
33
$cmd = "./check_time $udp_hostname -wt 59 -ct 59 -cd 999999 -wd 999999 -to 60";
36
print "Test was: $cmd\n" if ($?);
37
$t += ok $str, '/^TIME OK - [0-9]+ second time difference$/';
41
#$cmd = "./check_time -H $Cache::nullhost -t 1";
44
#print "Test was: $cmd\n" unless ($?);
46
#$cmd = "./check_time -H $Cache::noserver -t 1";
49
#print "$cmd\n" unless ($?);
51
exit(0) if defined($Test::Harness::VERSION);