From: Mark Andrews Date: Wed, 25 Aug 2010 04:51:51 +0000 (+0000) Subject: 2948. [port] MacOS: provide a mechanism to configure the test X-Git-Tag: v9.8.0-P1~468 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=17be07ab818846dffb79e898da888a29c919bb02;p=thirdparty%2Fbind9.git 2948. [port] MacOS: provide a mechanism to configure the test interfaces at reboot. See bin/tests/system/README for details. --- diff --git a/CHANGES b/CHANGES index 5ea959d16aa..437b606de47 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +2948. [port] MacOS: provide a mechanism to configure the test + interfaces at reboot. See bin/tests/system/README + for details. + 2947. [placeholder] 2946. [doc] Document the default values for the minimum and maximum diff --git a/bin/tests/system/README b/bin/tests/system/README index be79650d380..0fc27a9d869 100644 --- a/bin/tests/system/README +++ b/bin/tests/system/README @@ -39,6 +39,13 @@ separate virtual IP address on the loopback interface. ns1 runs on 10.53.0.1, ns2 on 10.53.0.2, etc. Before running any tests, you must set up these addresses by running "ifconfig.sh up" as root. +Mac OS X: +If you wish to make the interfaces survive across reboots +copy org.isc.bind.system and org.isc.bind.system to +/Library/LaunchDaemons then run +"launchctl load /Library/LaunchDaemons/org.isc.bind.system.plist" as +root. + The servers use port 5300 instead of the usual port 53, so they can be run without root privileges once the interfaces have been set up. @@ -50,5 +57,4 @@ The tests can be run individually like this: To run all the tests, just type "make test". - -$Id: README,v 1.12 2004/03/05 04:59:12 marka Exp $ +$Id: README,v 1.13 2010/08/25 04:51:51 marka Exp $ diff --git a/bin/tests/system/org.isc.bind.system b/bin/tests/system/org.isc.bind.system new file mode 100644 index 00000000000..f84199559dc --- /dev/null +++ b/bin/tests/system/org.isc.bind.system @@ -0,0 +1,23 @@ +#!/bin/sh +# +# Copyright (C) 2010 Internet Systems Consortium, Inc. ("ISC") +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH +# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, +# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. + +# $Id: org.isc.bind.system,v 1.1 2010/08/25 04:51:51 marka Exp $ + +for ns in 1 2 3 4 5 6 7 +do + /sbin/ifconfig lo0 10.53.0.$ns alias + /sbin/ifconfig lo0 inet6 fd92:7065:b8e:ffff::$ns alias +done diff --git a/bin/tests/system/org.isc.bind.system.plist b/bin/tests/system/org.isc.bind.system.plist new file mode 100644 index 00000000000..18d3c5dceb0 --- /dev/null +++ b/bin/tests/system/org.isc.bind.system.plist @@ -0,0 +1,17 @@ + + + + + Label + org.isc.bind.system + ProgramArguments + + /bin/bash + /Library/LaunchDaemons/org.isc.bind.system + + RunAtLoad + + + +