2948. [port] MacOS: provide a mechanism to configure the test

interfaces at reboot. See bin/tests/system/README
                        for details.
This commit is contained in:
Mark Andrews 2010-08-25 04:51:51 +00:00
parent 5fdcf9e935
commit 17be07ab81
4 changed files with 52 additions and 2 deletions

View file

@ -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

View file

@ -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 $

View file

@ -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

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.isc.bind.system</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>/Library/LaunchDaemons/org.isc.bind.system</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>