From: Jason Edgecombe Date: Sun, 23 Sep 2012 01:07:51 +0000 (-0400) Subject: TESTS: Skip the volser tests if current hostname maps to the loopback network X-Git-Tag: upstream/1.8.0_pre1^2~1963 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=100cec69fbbb911762a3424a37c8a53b299136ea;p=packages%2Fo%2Fopenafs.git TESTS: Skip the volser tests if current hostname maps to the loopback network Change-Id: I35d16ba418d0ecd67ffbd54d564a515bf551fe8d Reviewed-on: http://gerrit.openafs.org/8146 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- diff --git a/tests/volser/Makefile.in b/tests/volser/Makefile.in index e542e9c2b..6ba9d46d6 100644 --- a/tests/volser/Makefile.in +++ b/tests/volser/Makefile.in @@ -14,9 +14,10 @@ MODULE_LIBS = ../tap/libtap.a \ $(abs_top_builddir)/src/vlserver/liboafs_vldb.la \ $(XLIBS) -vos-t: vos-t.o ../common/config.o ../common/servers.o ../common/ubik.o +vos-t: vos-t.o ../common/config.o ../common/servers.o ../common/ubik.o \ + ../common/network.o $(LT_LDRULE_static) vos-t.o ../common/config.o ../common/servers.o \ - ../common/ubik.o $(MODULE_LIBS) + ../common/ubik.o ../common/network.o $(MODULE_LIBS) clean: $(LT_CLEAN) diff --git a/tests/volser/vos-t.c b/tests/volser/vos-t.c index dc8f64e14..daecfbfa9 100644 --- a/tests/volser/vos-t.c +++ b/tests/volser/vos-t.c @@ -96,6 +96,9 @@ main(int argc, char **argv) plan(6); + /* Skip all tests if the current hostname is on the loopback network */ + afstest_SkipTestsIfLoopbackNetIsDefault(); + code = rx_Init(0); dirname = afstest_BuildTestConfig();