]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2948. [port] MacOS: provide a mechanism to configure the test
authorMark Andrews <marka@isc.org>
Wed, 25 Aug 2010 04:51:51 +0000 (04:51 +0000)
committerMark Andrews <marka@isc.org>
Wed, 25 Aug 2010 04:51:51 +0000 (04:51 +0000)
                        interfaces at reboot. See bin/tests/system/README
                        for details.

CHANGES
bin/tests/system/README
bin/tests/system/org.isc.bind.system [new file with mode: 0644]
bin/tests/system/org.isc.bind.system.plist [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index 5ea959d16aac150a388e3e59f2b2095dc5288d37..437b606de475209df6d1b4cb5a83dbc55822c7cd 100644 (file)
--- 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
index be79650d38068d3da075148e119f60aef8dd6d62..0fc27a9d86943ebc26e96cc04b5453b1c32628c6 100644 (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 $
diff --git a/bin/tests/system/org.isc.bind.system b/bin/tests/system/org.isc.bind.system
new file mode 100644 (file)
index 0000000..f841995
--- /dev/null
@@ -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 (file)
index 0000000..18d3c5d
--- /dev/null
@@ -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>
+