]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_6]
authorCurtis Blackburn <ckb@isc.org>
Tue, 26 Mar 2013 19:50:26 +0000 (14:50 -0500)
committerCurtis Blackburn <ckb@isc.org>
Tue, 26 Mar 2013 19:50:26 +0000 (14:50 -0500)
3538. [test] Running "make test" now requires loopback interfaces to be
set up. [RT #32452]

CHANGES
Makefile.in

diff --git a/CHANGES b/CHANGES
index d6f3a90f2566cc3fd3e715a6d9573e3338b8bb04..50a770b0849bc6257c117de62fdb94b915c5007f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3538.  [test]  Running "make test" now requires loopback interfaces to be 
+                       set up. [RT #32452]
+
 3535.  [bug]           Minor win32 cleanups. [RT #32962]
 
 3534.  [bug]           Extra text after an embedded NULL was ignored when
index 7de78511fe376f52c0ea68e2e3844dec51df87aa..f2808e739a9b3831725353e1d01ca1a16944644d 100644 (file)
@@ -60,9 +60,21 @@ tags:
        rm -f TAGS
        find lib bin -name "*.[ch]" -print | @ETAGS@ -
 
-check: test
-
 test:
+       @if test -n "`${PERL} ${top_srcdir}/bin/tests/system/testsock.pl 2>&- || echo fail`"; then \
+       echo I: NOTE: The tests were not run because they require that; \
+       echo I: the IP addresses 10.53.0.1 through 10.53.0.8 are configured; \
+       echo I: as alias addresses on the loopback interface.  Please run; \
+       echo I: \'bin/tests/system/ifconfig.sh up\' as root to configure; \
+       echo I: them, then rerun the tests. Run make force-test to run the; \
+       echo I: tests anyway.; \
+       exit 1; \
+       fi
+       ${MAKE} test-force
+
+force-test: test-force
+
+test-force:
        status=0; \
        (cd bin/tests && ${MAKE} ${MAKEDEFS} test) || status=1; \
        (test -f unit/unittest.sh && $(SHELL) unit/unittest.sh) || status=1; \