X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=test%2Fruntest;h=a8016cc945ae586a6f4fc988edc135bf7357099e;hb=8fd715e80d7848fa463f06951a42967bd7123756;hp=2af47eb62281788b19bb4acd5a21474cddea1070;hpb=f2dd649a6558f5a4cf6c7f576e2fbc0d2a27730d;p=exim.git diff --git a/test/runtest b/test/runtest index 2af47eb62..a8016cc94 100755 --- a/test/runtest +++ b/test/runtest @@ -1,7 +1,5 @@ #! /usr/bin/perl -w -# $Cambridge: exim/test/runtest,v 1.32 2009/11/19 18:51:11 nm4 Exp $ - ############################################################################### # This is the controlling script for the "new" test suite for Exim. It should # # be possible to export this suite for running on a wide variety of hosts, in # @@ -15,6 +13,7 @@ # Placed in the Exim CVS: 06 February 2006 # ############################################################################### +#use strict; require Cwd; use Errno; use FileHandle; @@ -23,9 +22,9 @@ use Socket; # Start by initializing some global variables -$testversion = "4.70 (14-Oct-09)"; +$testversion = "4.78 (08-May-12)"; -$cf = "bin/cf"; +$cf = "bin/cf -exact"; $cr = "\r"; $debug = 0; $force_update = 0; @@ -120,6 +119,12 @@ s?\bV6NET:?$parm_ipv6_test_net:?g; } +################################################## +# Any state to be preserved across tests # +################################################## + +my $TEST_STATE = {}; + ################################################## # Subroutine to tidy up and exit # @@ -142,6 +147,13 @@ my($spool); # than SIGTERM to stop it outputting "Terminated" to the terminal when not in # the background. +if (exists $TEST_STATE->{exim_pid}) + { + $pid = $TEST_STATE->{exim_pid}; + print "Tidyup: killing wait-mode daemon pid=$pid\n"; + system("sudo kill -SIGINT $pid"); + } + if (opendir(DIR, "spool")) { my(@spools) = sort readdir(DIR); @@ -299,6 +311,7 @@ $spid = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; while() { +RESET_AFTER_EXTRA_LINE_READ: # Check for "*** truncated ***" $yield = 1 if /\*\*\* truncated \*\*\*/; @@ -312,7 +325,8 @@ while() s?\Q$parm_cwd\E?TESTSUITE?g; # Replace the Exim version number (may appear in various places) - s/Exim \d+\.\d+[\w-]*/Exim x.yz/i; + # patchexim should have fixed this for us + #s/(Exim) \d+\.\d+[\w_-]*/$1 x.yz/i; # Replace Exim message ids by a unique series s/((?:[^\W_]{6}-){2}[^\W_]{2}) @@ -441,7 +455,7 @@ while() \d{4}-\d\d-\d\d\s\d\d:\d\d:\d\d/Exim statistics from