From: serassio <> Date: Sun, 23 Apr 2006 15:18:30 +0000 (+0000) Subject: Allow execution of make check when not all the FS store are selected during X-Git-Tag: SQUID_3_0_PRE4~245 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=082a5e7accf2b402d7d907f6408f625c96476a28;p=thirdparty%2Fsquid.git Allow execution of make check when not all the FS store are selected during configure. --- diff --git a/configure.in b/configure.in index d01761cd6a..64f03232a8 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,7 @@ dnl Configuration input file for Squid dnl dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9) dnl -dnl $Id: configure.in,v 1.404 2006/04/22 08:23:14 robertc Exp $ +dnl $Id: configure.in,v 1.405 2006/04/23 09:18:30 serassio Exp $ dnl dnl dnl @@ -13,7 +13,7 @@ AC_CONFIG_SRCDIR([src/main.cc]) AC_CONFIG_AUX_DIR(cfgaux) AM_INIT_AUTOMAKE([tar-ustar]) AM_CONFIG_HEADER(include/autoconf.h) -AC_REVISION($Revision: 1.404 $)dnl +AC_REVISION($Revision: 1.405 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AM_MAINTAINER_MODE @@ -482,6 +482,7 @@ NEED_BLOCKING= NEED_DISKDAEMON= NEED_DISKTHREADS= NEED_AIO= +STORE_TESTS= for fs in $STORE_MODULES none; do case "$fs" in diskd) @@ -495,10 +496,15 @@ for fs in $STORE_MODULES none; do NEED_DISKTHREADS="true" ;; coss) - NEED_AIO="true" + NEED_AIO="true" + STORE_TESTS="$STORE_TESTS tests/testCoss$EXEEXT" + ;; + null) + STORE_TESTS="$STORE_TESTS tests/testNull$EXEEXT" ;; ufs) - UFS_FOUND="true" + UFS_FOUND="true" + STORE_TESTS="$STORE_TESTS tests/testUfs$EXEEXT" esac done STORE_OBJS= @@ -521,11 +527,13 @@ if test -z "$UFS_FOUND" && test -n "$NEED_UFS"; then STORE_LIBS="$STORE_LIBS libufs.a" STORE_MODULES="$STORE_MODULES ufs" STORE_LINKOBJS="$STORE_LINKOBJS fs/ufs/StoreFSufs.o" + STORE_TESTS="$STORE_TESTS tests/testUfs$EXEEXT" fi AC_SUBST(STORE_OBJS) AC_SUBST(STORE_LIBS) AC_SUBST(STORE_LINKOBJS) +AC_SUBST(STORE_TESTS) AC_ARG_ENABLE(disk-io, [ --enable-disk-io=\"list of modules\" diff --git a/src/Makefile.am b/src/Makefile.am index 85dacc6efe..fddd90642e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.am,v 1.132 2006/04/22 05:29:18 robertc Exp $ +# $Id: Makefile.am,v 1.133 2006/04/23 09:18:30 serassio Exp $ # # Uncomment and customize the following to suit your needs: # @@ -183,7 +183,10 @@ EXTRA_PROGRAMS = \ pinger \ dnsserver \ recv-announce \ - ufsdump + ufsdump \ + tests/testUfs \ + tests/testCoss \ + tests/testNull noinst_PROGRAMS = \ cf_gen @@ -997,11 +1000,9 @@ TESTSOURCES= \ check_PROGRAMS+= \ tests/testAuth \ tests/testBoilerplate \ - tests/testCoss \ tests/testHeaders \ - tests/testNull \ tests/testStore \ - tests/testUfs + @STORE_TESTS@ tests_testAuth_SOURCES= tests/testAuth.cc tests/testMain.cc tests/testAuth.h $(TESTSOURCES) \ AuthScheme.cc authenticate.cc AuthUser.cc AuthUserRequest.cc AuthConfig.cc \