git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TDB: quieten compiler and testsuite
[exim.git]
/
test
/
runtest
diff --git
a/test/runtest
b/test/runtest
index ede05bea84cfdabc6658cd29d02538ad133800b6..a2e61442e49ba818bb09c57cd7ce81767952de70 100755
(executable)
--- a/
test/runtest
+++ b/
test/runtest
@@
-369,6
+369,10
@@
my($is_mail) = $file =~ /mail/;
$date = "\\d{2}-\\w{3}-\\d{4}\\s\\d{2}:\\d{2}:\\d{2}";
$date = "\\d{2}-\\w{3}-\\d{4}\\s\\d{2}:\\d{2}:\\d{2}";
+# Debug time & pid
+
+$time_pid = "(?:\\d{2}:\\d{2}:\\d{2}\\s+\\d+\\s)";
+
# Pattern for matching pids at start of stderr lines; initially something
# that won't match.
# Pattern for matching pids at start of stderr lines; initially something
# that won't match.
@@
-960,6
+964,9
@@
RESET_AFTER_EXTRA_LINE_READ:
# MIME boundaries in RFC3461 DSN messages
s/\d{8,10}-eximdsn-\d+/NNNNNNNNNN-eximdsn-MMMMMMMMMM/;
# MIME boundaries in RFC3461 DSN messages
s/\d{8,10}-eximdsn-\d+/NNNNNNNNNN-eximdsn-MMMMMMMMMM/;
+ # Cyrus SASL library version differences (rejectlog)
+ s/Cyrus SASL permanent failure: \Kuser not found$/generic failure/;
+
# ==========================================================
# Some munging is specific to the specific file types
# ==========================================================
# Some munging is specific to the specific file types
@@
-1103,6
+1110,10
@@
RESET_AFTER_EXTRA_LINE_READ:
next if /^GnuTLS<2>: Intel (AES|GCM) accelerator was detected/;
next if /^Added \d{3} certificate authorities/;
next if /^TLS: not preloading CRL for server/;
next if /^GnuTLS<2>: Intel (AES|GCM) accelerator was detected/;
next if /^Added \d{3} certificate authorities/;
next if /^TLS: not preloading CRL for server/;
+ next if /^GnuTLS<3>: ASSERT: extensions.c\[_gnutls_get_extension/;
+ next if /^GnuTLS<3>: ASSERT: \.\.\/\.\.\/\.\.\/lib\/x509\//;
+ next if /^GnuTLS<2>: Initializing PKCS #11 modules/;
+
# only kevent platforms (FreeBSD, OpenBSD) say this
next if /^watch dir/;
# only kevent platforms (FreeBSD, OpenBSD) say this
next if /^watch dir/;
@@
-1117,28
+1128,28
@@
RESET_AFTER_EXTRA_LINE_READ:
next if /^TLS: not preloading server certs$/;
# drop lookups
next if /^TLS: not preloading server certs$/;
# drop lookups
- next if /^
(?:\d\d:\d\d:\d\d\ \d+\ )
?(?: Lookups\ \(built-in\):
+ next if /^
$time_pid
?(?: Lookups\ \(built-in\):
| Loading\ lookup\ modules\ from
| Loaded\ \d+\ lookup\ modules
| Total\ \d+\ lookups)/x;
# drop compiler information
| Loading\ lookup\ modules\ from
| Loaded\ \d+\ lookup\ modules
| Total\ \d+\ lookups)/x;
# drop compiler information
- next if /^
(?:\d\d:\d\d:\d\d \d+ )
?Compiler:/;
+ next if /^
$time_pid
?Compiler:/;
# and the ugly bit
# different libraries will have different numbers (possibly 0) of follow-up
# lines, indenting with more data
# and the ugly bit
# different libraries will have different numbers (possibly 0) of follow-up
# lines, indenting with more data
- if (/^
(?:\d\d:\d\d:\d\d \d+ )
?Library version:/) {
+ if (/^
$time_pid
?Library version:/) {
while (1) {
$_ = <IN>;
while (1) {
$_ = <IN>;
- next if /^
(?:\d\d:\d\d:\d\d \d+ )
?\s/;
+ next if /^
$time_pid
?\s/;
goto RESET_AFTER_EXTRA_LINE_READ;
}
}
# drop other build-time controls emitted for debugging
goto RESET_AFTER_EXTRA_LINE_READ;
}
}
# drop other build-time controls emitted for debugging
- next if /^
(?:\d\d:\d\d:\d\d \d+ )
?WHITELIST_D_MACROS:/;
- next if /^
(?:\d\d:\d\d:\d\d \d+ )
?TRUSTED_CONFIG_LIST:/;
+ next if /^
$time_pid
?WHITELIST_D_MACROS:/;
+ next if /^
$time_pid
?TRUSTED_CONFIG_LIST:/;
# As of Exim 4.74, we log when a setgid fails; because we invoke Exim
# with -be, privileges will have been dropped, so this will always
# As of Exim 4.74, we log when a setgid fails; because we invoke Exim
# with -be, privileges will have been dropped, so this will always
@@
-1286,7
+1297,7
@@
RESET_AFTER_EXTRA_LINE_READ:
}
# Different builds will have different lookup types included
}
# Different builds will have different lookup types included
- s/^search_type \K\d+ \((\w+)\) quoting -1 \(none\)$/NN ($1) quoting -1 (none)/;
+ s/^
\s*
search_type \K\d+ \((\w+)\) quoting -1 \(none\)$/NN ($1) quoting -1 (none)/;
# DISABLE_OCSP
next if /in hosts_requ(est|ire)_ocsp\? (no|yes)/;
# DISABLE_OCSP
next if /in hosts_requ(est|ire)_ocsp\? (no|yes)/;
@@
-1410,10
+1421,10
@@
RESET_AFTER_EXTRA_LINE_READ:
# Time-only, in debug output
# we have to handle double lines from the DBOPEN, hence placed down here and /mg
# Time-only, in debug output
# we have to handle double lines from the DBOPEN, hence placed down here and /mg
- s/^\d\d:\d\d:\d\d\s/01:01:01 /mg;
+ s/^\d\d:\d\d:\d\d\s
+
/01:01:01 /mg;
# pid in debug lines
# pid in debug lines
- s/^(\d\d:\d\d:\d\d)(\s\d+\s)/"$1 " . new_value($2, "%s", \$next_pid) . " "/mgxe;
+ s/^(\d\d:\d\d:\d\d)(\s
+
\d+\s)/"$1 " . new_value($2, "%s", \$next_pid) . " "/mgxe;
s/(?<!post-)[Pp]rocess\K(\s\d+ )/new_value($1, "%s", \$next_pid) . " "/gxe;
# When Exim is checking the size of directories for maildir, it uses
s/(?<!post-)[Pp]rocess\K(\s\d+ )/new_value($1, "%s", \$next_pid) . " "/gxe;
# When Exim is checking the size of directories for maildir, it uses
@@
-1440,10
+1451,10
@@
RESET_AFTER_EXTRA_LINE_READ:
# Skip some lines that Exim puts out at the start of debugging output
# because they will be different in different binaries.
# Skip some lines that Exim puts out at the start of debugging output
# because they will be different in different binaries.
- print MUNGED
- unless (/^(?:\d\d:\d\d:\d\d\ \d+\ )?
+ next if /^$time_pid?
(?: Berkeley\ DB:\s
| Probably\ (?:Berkeley\ DB|ndbm|GDBM)
(?: Berkeley\ DB:\s
| Probably\ (?:Berkeley\ DB|ndbm|GDBM)
+ | Using\ tdb
| Authenticators:
| Lookups(?:\(built-in\))?:
| Support\ for:
| Authenticators:
| Lookups(?:\(built-in\))?:
| Support\ for:
@@
-1456,10
+1467,9
@@
RESET_AFTER_EXTRA_LINE_READ:
| Configure\ owner
| Size\ of\ off_t:
)
| Configure\ owner
| Size\ of\ off_t:
)
- /x
- );
-
+ /x;
+ print MUNGED;
}
next;
}
next;
@@
-1929,12
+1939,6
@@
$munges =
{ 'mainlog' => 's/^(.* SMTP protocol synchronization error .* next input=.{8}).*$/$1<suppressed>/',
'rejectlog' => 's/^(.* SMTP protocol synchronization error .* next input=.{8}).*$/$1<suppressed>/'},
{ 'mainlog' => 's/^(.* SMTP protocol synchronization error .* next input=.{8}).*$/$1<suppressed>/',
'rejectlog' => 's/^(.* SMTP protocol synchronization error .* next input=.{8}).*$/$1<suppressed>/'},
- 'debuglog_stdout' =>
- { 'stdout' => 's/^\d\d:\d\d:\d\d\s+\d+ //;
- s/Process \d+ is ready for new message/Process pppp is ready for new message/;
- s/^(?:daemon-accept forked for daemon-accept-delivery:|forked delivery process) \K\d+$/pppp/;'
- },
-
'timeout_errno' => # actual errno differs Solaris vs. Linux
{ 'mainlog' => 's/((?:host|message) deferral .* errno) <\d+> /$1 <EEE> /' },
'timeout_errno' => # actual errno differs Solaris vs. Linux
{ 'mainlog' => 's/((?:host|message) deferral .* errno) <\d+> /$1 <EEE> /' },
@@
-2035,7
+2039,7
@@
if (! $message_skip)
foreach $mail (@mails)
{
foreach $mail (@mails)
{
- next if $mail
eq "test-mail/oncelog"
;
+ next if $mail
=~ /^test-mail\/oncelog(.(dir|pag|db))?$/
;
$saved_mail = substr($mail, 10); # Remove "test-mail/"
$saved_mail =~ s/^$parm_caller(\/|$)/CALLER/; # Convert caller name
$saved_mail = substr($mail, 10); # Remove "test-mail/"
$saved_mail =~ s/^$parm_caller(\/|$)/CALLER/; # Convert caller name
@@
-2316,7
+2320,7
@@
if (/^dump\s+(\S+)/)
sort { $a->[0] cmp $b->[0] }
#map { [ (split)[0] =~ s/\Q$parm_ipv4/ip4.ip4.ip4.ip4/gr, $_ ] } # this is too modern for 5.10.1
map {
sort { $a->[0] cmp $b->[0] }
#map { [ (split)[0] =~ s/\Q$parm_ipv4/ip4.ip4.ip4.ip4/gr, $_ ] } # this is too modern for 5.10.1
map {
- (my $k = (split)[0]) =~ s/\Q$parm_ipv4/ip4.ip4.ip4.ip4/g;
+ (my $k = (split)[0]) =~ s/\Q$parm_ipv4
\E
/ip4.ip4.ip4.ip4/g;
[ $k, $_ ]
}
do { local $/ = "\n "; <$in> };
[ $k, $_ ]
}
do { local $/ = "\n "; <$in> };
@@
-2337,6
+2341,16
@@
if (/^dump\s+(\S+)/)
return $aa cmp $bb;
} @temp;
}
return $aa cmp $bb;
} @temp;
}
+ elsif ($which eq "seen")
+ {
+ @temp = sort {
+ (my $aa = $a) =~ s/^([\d.]+)/$1/;
+ (my $bb = $b) =~ s/^([\d.]+)/$1/;
+ $aa =~ s/\Q$parm_ipv4\E/ip4.ip4.ip4.ip4/;
+ $bb =~ s/\Q$parm_ipv4\E/ip4.ip4.ip4.ip4/;
+ return $aa cmp $bb;
+ } @temp;
+ }
print $out @temp;
}
close($in); # close it explicitly, otherwise $? does not get set
print $out @temp;
}
close($in); # close it explicitly, otherwise $? does not get set
@@
-2403,6
+2417,17
@@
if (/^exigrep\s+(.*)/)
}
}
+# The "exiqgrep" command runs exiqgrep on the current spool
+
+if (/^exiqgrep(\s+.*)?/)
+ {
+ run_system("(./eximdir/exiqgrep -E ./eximdir/exim -C $parm_cwd/test-config" . ($1 || '') . ";" .
+ "echo exiqgrep exit code = \$?)" .
+ ">>test-stdout");
+ return 1;
+ }
+
+
# The "eximstats" command runs eximstats on the current mainlog
if (/^eximstats\s+(.*)/)
# The "eximstats" command runs eximstats on the current mainlog
if (/^eximstats\s+(.*)/)
@@
-3785,7
+3810,7
@@
if (defined $parm_lookups{dbm} && not cp("$parm_exim_dir/exim_dbmbuild", "eximdi
$dbm_build_deleted = 1;
}
$dbm_build_deleted = 1;
}
-foreach my $tool (qw(exim_dumpdb exim_lock exinext exigrep eximstats)) {
+foreach my $tool (qw(exim_dumpdb exim_lock exinext exigrep eximstats
exiqgrep
)) {
cp("$parm_exim_dir/$tool" => "eximdir/$tool")
or tests_exit(-1, "Failed to make a copy of $tool: $!");
}
cp("$parm_exim_dir/$tool" => "eximdir/$tool")
or tests_exit(-1, "Failed to make a copy of $tool: $!");
}
@@
-3793,7
+3818,7
@@
foreach my $tool (qw(exim_dumpdb exim_lock exinext exigrep eximstats)) {
# Collect some version information
print '-' x 78, "\n";
print "Perl version for runtest: $]\n";
# Collect some version information
print '-' x 78, "\n";
print "Perl version for runtest: $]\n";
-foreach (map { "./eximdir/$_" } qw(exigrep exinext eximstats)) {
+foreach (map { "./eximdir/$_" } qw(exigrep exinext eximstats
exiqgrep
)) {
# fold (or unfold?) multiline output into a one-liner
print join(', ', map { chomp; $_ } `$_ --version`), "\n";
}
# fold (or unfold?) multiline output into a one-liner
print join(', ', map { chomp; $_ } `$_ --version`), "\n";
}