git://git.exim.org
/
users
/
jgh
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5250308
)
Testsuite: support platforms using ifconfig from inetutils. Bug 2485
author
Samuel Thibault
<samuel.thibault@ens-lyon.org>
Tue, 3 Dec 2019 21:13:06 +0000
(21:13 +0000)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Tue, 3 Dec 2019 21:13:06 +0000
(21:13 +0000)
test/runtest
patch
|
blob
|
history
diff --git
a/test/runtest
b/test/runtest
index 25f9b95718368ce86fe7b1a87174af5c39606913..a8858b1cb1a56db30cc710d868873164e84eccf8 100755
(executable)
--- a/
test/runtest
+++ b/
test/runtest
@@
-3429,7
+3429,7
@@
while (not ($parm_ipv4 and $parm_ipv6) and defined($_ = <IFCONFIG>))
{
if (/^(?:[0-9]+: )?([a-z0-9]+): /) { $ifname = $1; }
{
if (/^(?:[0-9]+: )?([a-z0-9]+): /) { $ifname = $1; }
- if (not $parm_ipv4 and /^\s*inet(?:\saddr
)?:?\s?
(\d+\.\d+\.\d+\.\d+)(?:\/\d+)?\s/i)
+ if (not $parm_ipv4 and /^\s*inet(?:\saddr
(?:ess))?:?\s*
(\d+\.\d+\.\d+\.\d+)(?:\/\d+)?\s/i)
{
# It would ne nice to be able to vary the /16 used for manyhome; we could take
# an option to runtest used here - but we'd also have to pass it on to fakens.
{
# It would ne nice to be able to vary the /16 used for manyhome; we could take
# an option to runtest used here - but we'd also have to pass it on to fakens.
@@
-3438,7
+3438,7
@@
while (not ($parm_ipv4 and $parm_ipv6) and defined($_ = <IFCONFIG>))
$parm_ipv4 = $1;
}
$parm_ipv4 = $1;
}
- if (not $parm_ipv6 and /^\s*inet6(?:\saddr
)?:?\s?
([abcdef\d:]+)(?:%[^ \/]+)?(?:\/\d+)?/i)
+ if (not $parm_ipv6 and /^\s*inet6(?:\saddr
(?:ess))?:?\s*
([abcdef\d:]+)(?:%[^ \/]+)?(?:\/\d+)?/i)
{
next if $1 eq '::' or $1 eq '::1' or $1 =~ /^ff00/i or $1 =~ /^fe80::1/i;
$parm_ipv6 = $1;
{
next if $1 eq '::' or $1 eq '::1' or $1 =~ /^ff00/i or $1 =~ /^fe80::1/i;
$parm_ipv6 = $1;