git://git.exim.org
/
users
/
jgh
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Testsuite: platform differences for resolver flags bits
[users/jgh/exim.git]
/
test
/
runtest
diff --git
a/test/runtest
b/test/runtest
index 7ad54e29a336d632ebc9f6eb45fcaad736f0ea11..1ef31c3dc849aa4d4cd36d21e6050d3342d8687b 100755
(executable)
--- a/
test/runtest
+++ b/
test/runtest
@@
-772,7
+772,7
@@
RESET_AFTER_EXTRA_LINE_READ:
}
# Port in host address in spool file output from -Mvh
}
# Port in host address in spool file output from -Mvh
- s/^
-host_address (.*)\.\d+/-host_address $1
.9999/;
+ s/^
(--?host_address) (.*)\.\d+/$1 $2
.9999/;
if ($dynamic_socket and $dynamic_socket->opened and my $port = $dynamic_socket->sockport) {
s/^Connecting to 127\.0\.0\.1 port \K$port/<dynamic port>/;
if ($dynamic_socket and $dynamic_socket->opened and my $port = $dynamic_socket->sockport) {
s/^Connecting to 127\.0\.0\.1 port \K$port/<dynamic port>/;
@@
-1093,6
+1093,7
@@
RESET_AFTER_EXTRA_LINE_READ:
next if /get\[host\|ipnode\]byname\[2\]\(af=inet6\)/;
next if /DNS lookup of \S+ \(AAAA\) using fakens/;
next if / in dns_ipv4_lookup?/;
next if /get\[host\|ipnode\]byname\[2\]\(af=inet6\)/;
next if /DNS lookup of \S+ \(AAAA\) using fakens/;
next if / in dns_ipv4_lookup?/;
+ next if / writing neg-cache entry for .*AAAA/;
if (/DNS lookup of \S+ \(AAAA\) gave NO_DATA/)
{
if (/DNS lookup of \S+ \(AAAA\) gave NO_DATA/)
{
@@
-1157,6
+1158,9
@@
RESET_AFTER_EXTRA_LINE_READ:
# Platform-dependent error strings
s/Operation timed out/Connection timed out/;
# Platform-dependent error strings
s/Operation timed out/Connection timed out/;
+ # Platform-dependent resolver option bits
+ s/^ writing neg-cache entry for [^,]+-\K[0-9a-f]+, ttl/xxxx, ttl/;
+
# Skip hosts_require_dane checks when the options
# are unset, because dane ain't always there.
next if /in\shosts_require_dane\?\sno\s\(option\sunset\)/x;
# Skip hosts_require_dane checks when the options
# are unset, because dane ain't always there.
next if /in\shosts_require_dane\?\sno\s\(option\sunset\)/x;
@@
-1203,6
+1207,9
@@
RESET_AFTER_EXTRA_LINE_READ:
# Not all platforms build with DKIM enabled
next if /^PDKIM >> Body data for hash, canonicalized/;
# Not all platforms build with DKIM enabled
next if /^PDKIM >> Body data for hash, canonicalized/;
+ # Not all platforms build with SPF enabled
+ next if /^(spf_conn_init|SPF_dns_exim_new|spf_compile\.c)/;
+
# Not all platforms have sendfile support
next if /^cannot use sendfile for body: no support$/;
# Not all platforms have sendfile support
next if /^cannot use sendfile for body: no support$/;
@@
-1215,6
+1222,7
@@
RESET_AFTER_EXTRA_LINE_READ:
{
$_ .= <IN>;
s/ \.\.\. >>> / ... /;
{
$_ .= <IN>;
s/ \.\.\. >>> / ... /;
+ if (s/ non-TFO mode connection attempt to 224.0.0.0, 0 data\b$//) { $_ .= <IN>; }
s/Address family not supported by protocol family/Network Error/;
s/Network is unreachable/Network Error/;
}
s/Address family not supported by protocol family/Network Error/;
s/Network is unreachable/Network Error/;
}
@@
-1229,17
+1237,17
@@
RESET_AFTER_EXTRA_LINE_READ:
$/x)
{
$_ = $1 . " ... " . <IN>;
$/x)
{
$_ = $1 . " ... " . <IN>;
- s/^(.* \.\.\.) [0-9: ]*connected$/$1 connected/;
+ s/^(.* \.\.\.) [0-9: ]*connected$/$1
connected/;
- if (/^Connecting to .* \.\.\. connected$/)
+ if (/^Connecting to .* \.\.\.
connected$/)
{
$_ .= <IN>;
{
$_ .= <IN>;
- if (/^(Connecting to .* \.\.\. )connected\n\s+SMTP(\(close\)>>|\(Connection refused\)<<)$/)
+ if (/^(Connecting to .* \.\.\.
)connected\n\s+SMTP(\(close\)>>|\(Connection refused\)<<)$/)
{
$_ = $1 . "failed: Connection refused\n" . <IN>;
s/^(Connecting .*)\n\s+SMTP\(close\)>>$/$1/;
}
{
$_ = $1 . "failed: Connection refused\n" . <IN>;
s/^(Connecting .*)\n\s+SMTP\(close\)>>$/$1/;
}
- elsif (/^(Connecting to .* \.\.\. connected\n)read response data: size=/)
+ elsif (/^(Connecting to .* \.\.\.
connected\n)read response data: size=/)
{ $_ = $1; }
# Date/time in SMTP banner
{ $_ = $1; }
# Date/time in SMTP banner
@@
-4224,10
+4232,22
@@
foreach $test (@test_list)
print "==================>\n";
system("tail -20 test-stdout");
print "===================\n";
print "==================>\n";
system("tail -20 test-stdout");
print "===================\n";
+
print "stderr tail:\n";
print "==================>\n";
print "stderr tail:\n";
print "==================>\n";
- system("tail -20 test-stderr");
+ system("tail -30 test-stderr");
+ print "===================\n";
+
+ print "stdout-server tail:\n";
+ print "==================>\n";
+ system("tail -20 test-stdout-server");
print "===================\n";
print "===================\n";
+
+ print "stderr-server tail:\n";
+ print "==================>\n";
+ system("tail -30 test-stderr-server");
+ print "===================\n";
+
print "... continue forced\n";
}
print "... continue forced\n";
}