]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
MacOS needs more IP addresses to run the system tests
authorTony Finch <fanf@isc.org>
Tue, 15 Mar 2022 17:01:34 +0000 (17:01 +0000)
committerTony Finch <fanf@isc.org>
Mon, 4 Apr 2022 14:08:45 +0000 (15:08 +0100)
The launchd script only counted up to 8 whereas ifconfig.sh went all
the way up to 10, and even a bit further than that.

(cherry picked from commit 29a3e77425f30615994595fd61eafbcbd0b0631c)

bin/tests/system/org.isc.bind.system

index 31c5615764653d7142a46f1560d8a12e2bdc5d02..276437ad6e75dd61e41f9b6a06af4ae25515bed2 100644 (file)
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
-for ns in 1 2 3 4 5 6 7 8
+ifup() {
+       /sbin/ifconfig lo0 10.53.$1.$3 alias
+       /sbin/ifconfig lo0 inet6 fd92:7065:b8e:${2}ff::${3} alias
+}
+
+for ns in 1 2 3 4 5 6 7 8 9 10
+do
+       ifup 0 ff $ns
+done
+for ns in 1 2
 do
-       /sbin/ifconfig lo0 10.53.0.$ns alias
-       /sbin/ifconfig lo0 inet6 fd92:7065:b8e:ffff::$ns alias
+       ifup 1 99 $ns
+       ifup 2 00 $ns
 done