Loading tests/runtests.pl +44 −36 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ BEGIN { } use strict; #use warnings; use warnings; use Cwd; # Subs imported from serverhelp module Loading Loading @@ -174,7 +174,7 @@ my $pwd = getcwd(); # current working directory my $start; my $forkserver=0; my $ftpchecktime; # time it took to verify our test FTP server my $ftpchecktime=1; # time it took to verify our test FTP server my $stunnel = checkcmd("stunnel4") || checkcmd("stunnel"); my $valgrind = checktestcmd("valgrind"); Loading Loading @@ -627,9 +627,11 @@ sub stopserver { # kill given pids and server relative ones clearing them in %run hash # foreach my $server (@killservers) { if($run{$server}) { $pidlist .= "$run{$server} "; $run{$server} = 0; } } killpid($verbose, $pidlist); # # cleanup server pid files Loading Loading @@ -704,7 +706,7 @@ sub verifyftp { my ($proto, $ip, $port, $ipvnum, $idnum) = @_; my $pid; my $time=time(); my $extra; my $extra=""; if($proto eq "ftps") { $extra .= "--insecure --ftp-ssl-control "; } Loading Loading @@ -2133,6 +2135,7 @@ sub singletest { if(!$why) { my @precheck = getpart("client", "precheck"); if(@precheck) { $cmd = $precheck[0]; chomp $cmd; subVariables \$cmd; Loading @@ -2147,6 +2150,7 @@ sub singletest { logmsg "prechecked $cmd\n" if($verbose); } } } if($why && !$listonly) { # there's a problem, count it as "skipped" Loading Loading @@ -2286,7 +2290,7 @@ sub singletest { my $out=""; if($cmdhash{'option'} !~ /no-output/) { if((!$cmdhash{'option'}) || ($cmdhash{'option'} !~ /no-output/)) { #We may slap on --output! if (!@validstdout) { $out=" --output $CURLOUT "; Loading Loading @@ -2504,9 +2508,11 @@ sub singletest { # my $pidlist; foreach my $server (@killservers) { if($run{$server}) { $pidlist .= "$run{$server} "; $run{$server} = 0; } } killpid($verbose, $pidlist); # # cleanup server pid files Loading @@ -2527,6 +2533,7 @@ sub singletest { # run the postcheck command my @postcheck= getpart("client", "postcheck"); if(@postcheck) { $cmd = $postcheck[0]; chomp $cmd; subVariables \$cmd; Loading @@ -2542,6 +2549,7 @@ sub singletest { return 1; } } } my $e; for $e (@envs) { Loading Loading @@ -2574,7 +2582,7 @@ sub singletest { # get the mode attribute my $filemode=$hash{'mode'}; if(($filemode eq "text") && $has_textaware) { if($filemode && ($filemode eq "text") && $has_textaware) { # text mode when running on windows: fix line endings map s/\r\n/\n/g, @actual; } Loading Loading @@ -2604,7 +2612,7 @@ sub singletest { my %hash = getpartattr("reply", "data"); # get the mode attribute my $filemode=$hash{'mode'}; if(($filemode eq "text") && $has_textaware) { if($filemode && ($filemode eq "text") && $has_textaware) { # text mode when running on windows: fix line endings map s/\r\n/\n/g, @out; } Loading Loading @@ -2704,7 +2712,7 @@ sub singletest { my @stripfile = getpart("verify", "stripfile"); my $filemode=$hash{'mode'}; if(($filemode eq "text") && $has_textaware) { if($filemode && ($filemode eq "text") && $has_textaware) { # text mode when running on windows means adding an extra # strip expression push @stripfile, "s/\r\n/\n/"; Loading Loading @@ -3648,7 +3656,7 @@ my $failed; my $testnum; my $ok=0; my $total=0; my $lasttest; my $lasttest=0; my @at = split(" ", $TESTCASES); my $count=0; Loading Loading
tests/runtests.pl +44 −36 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ BEGIN { } use strict; #use warnings; use warnings; use Cwd; # Subs imported from serverhelp module Loading Loading @@ -174,7 +174,7 @@ my $pwd = getcwd(); # current working directory my $start; my $forkserver=0; my $ftpchecktime; # time it took to verify our test FTP server my $ftpchecktime=1; # time it took to verify our test FTP server my $stunnel = checkcmd("stunnel4") || checkcmd("stunnel"); my $valgrind = checktestcmd("valgrind"); Loading Loading @@ -627,9 +627,11 @@ sub stopserver { # kill given pids and server relative ones clearing them in %run hash # foreach my $server (@killservers) { if($run{$server}) { $pidlist .= "$run{$server} "; $run{$server} = 0; } } killpid($verbose, $pidlist); # # cleanup server pid files Loading Loading @@ -704,7 +706,7 @@ sub verifyftp { my ($proto, $ip, $port, $ipvnum, $idnum) = @_; my $pid; my $time=time(); my $extra; my $extra=""; if($proto eq "ftps") { $extra .= "--insecure --ftp-ssl-control "; } Loading Loading @@ -2133,6 +2135,7 @@ sub singletest { if(!$why) { my @precheck = getpart("client", "precheck"); if(@precheck) { $cmd = $precheck[0]; chomp $cmd; subVariables \$cmd; Loading @@ -2147,6 +2150,7 @@ sub singletest { logmsg "prechecked $cmd\n" if($verbose); } } } if($why && !$listonly) { # there's a problem, count it as "skipped" Loading Loading @@ -2286,7 +2290,7 @@ sub singletest { my $out=""; if($cmdhash{'option'} !~ /no-output/) { if((!$cmdhash{'option'}) || ($cmdhash{'option'} !~ /no-output/)) { #We may slap on --output! if (!@validstdout) { $out=" --output $CURLOUT "; Loading Loading @@ -2504,9 +2508,11 @@ sub singletest { # my $pidlist; foreach my $server (@killservers) { if($run{$server}) { $pidlist .= "$run{$server} "; $run{$server} = 0; } } killpid($verbose, $pidlist); # # cleanup server pid files Loading @@ -2527,6 +2533,7 @@ sub singletest { # run the postcheck command my @postcheck= getpart("client", "postcheck"); if(@postcheck) { $cmd = $postcheck[0]; chomp $cmd; subVariables \$cmd; Loading @@ -2542,6 +2549,7 @@ sub singletest { return 1; } } } my $e; for $e (@envs) { Loading Loading @@ -2574,7 +2582,7 @@ sub singletest { # get the mode attribute my $filemode=$hash{'mode'}; if(($filemode eq "text") && $has_textaware) { if($filemode && ($filemode eq "text") && $has_textaware) { # text mode when running on windows: fix line endings map s/\r\n/\n/g, @actual; } Loading Loading @@ -2604,7 +2612,7 @@ sub singletest { my %hash = getpartattr("reply", "data"); # get the mode attribute my $filemode=$hash{'mode'}; if(($filemode eq "text") && $has_textaware) { if($filemode && ($filemode eq "text") && $has_textaware) { # text mode when running on windows: fix line endings map s/\r\n/\n/g, @out; } Loading Loading @@ -2704,7 +2712,7 @@ sub singletest { my @stripfile = getpart("verify", "stripfile"); my $filemode=$hash{'mode'}; if(($filemode eq "text") && $has_textaware) { if($filemode && ($filemode eq "text") && $has_textaware) { # text mode when running on windows means adding an extra # strip expression push @stripfile, "s/\r\n/\n/"; Loading Loading @@ -3648,7 +3656,7 @@ my $failed; my $testnum; my $ok=0; my $total=0; my $lasttest; my $lasttest=0; my @at = split(" ", $TESTCASES); my $count=0; Loading