From f9d9b10ea631ae7b03cab8c07552971ded1bd629 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 10 Aug 2008 01:54:43 +1200 Subject: [PATCH] TestBed: Layer 01 - Minimal build Automated testing of minimal build squid. This level disables all features and options that may be disabled. Squid must be expected to build cleanly with optional code disabled. --- test-builds.sh | 2 +- test-suite/buildtests/layer-01-minimal.opts | 90 +++++++++++++++++++++ 2 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 test-suite/buildtests/layer-01-minimal.opts diff --git a/test-builds.sh b/test-builds.sh index 2c4d855363..43f5893240 100755 --- a/test-builds.sh +++ b/test-builds.sh @@ -20,5 +20,5 @@ fi for f in `ls -1 ./test-suite/buildtests/layer*.opts` ; do arg=`echo "${f}" | sed s/\\.opts//` echo "TESTING: ${arg}" - ./test-suite/buildtest.sh "${arg}" + ./test-suite/buildtest.sh "${arg}" || exit 1 done diff --git a/test-suite/buildtests/layer-01-minimal.opts b/test-suite/buildtests/layer-01-minimal.opts new file mode 100644 index 0000000000..3753fa0972 --- /dev/null +++ b/test-suite/buildtests/layer-01-minimal.opts @@ -0,0 +1,90 @@ +# +# Minimal configuration options. +# - Everthing that can be disabled is +# - Everyhing that can be done without is +# +# The options for this level can be easily generated semi-automatically from configure.in by: +# grep -E "^AC_ARG_ENABLE" ./configure.in | grep -o -E "[0-9a-z\-]+[,]" | grep -o -E "[^,]+" >disable.opts +# followed by insertion of ' --disable-' and '\' strings +# +# grep -E "^AC_ARG_WITH" ./configure.in | grep -o -E "[0-9a-z\-]+[,]" | grep -o -E "[^,]+" >without.opts +# followed by insertion of ' --without-' and ' \' strings +# +OPTS=" \ + --disable-loadable-modules \ + --disable-gnuregex \ + --disable-optimizations \ + --disable-inline \ + --disable-debug-cbdata \ + --disable-xmalloc-statistics \ + --disable-async-io \ + --disable-storeio \ + --disable-disk-io \ + --disable-removal-policies \ + --disable-icmp \ + --disable-delay-pools \ + --disable-esi \ + --disable-icap-client \ + --disable-ecap \ + --disable-useragent-log \ + --disable-referer-log \ + --disable-wccp \ + --disable-wccpv2 \ + --disable-kill-parent-hack \ + --disable-snmp \ + --disable-cachemgr-hostname \ + --disable-arp-acl \ + --disable-htcp \ + --disable-ssl \ + --disable-forw-via-db \ + --disable-cache-digests \ + --disable-poll \ + --disable-select \ + --disable-kqueue \ + --disable-epoll \ + --disable-http-violations \ + --disable-ipfw-transparent \ + --disable-ipf-transparent \ + --disable-pf-transparent \ + --disable-linux-netfilter \ + --disable-linux-tproxy \ + --disable-leakfinder \ + --disable-follow-x-forwarded-for \ + --disable-ident-lookups \ + --disable-internal-dns \ + --disable-default-hostsfile \ + --disable-auth \ + --disable-basic-auth-helpers \ + --disable-ntlm-auth-helpers \ + --disable-negotiate-auth-helpers \ + --disable-digest-auth-helpers \ + --disable-ntlm-fail-open \ + --disable-external-acl-helpers \ + --disable-mempools \ + --disable-win32-service \ + --disable-unlinkd \ + --disable-stacktraces \ + --disable-cpu-profiling \ + --disable-vary \ + --disable-ipv6 \ + --disable-zph-qos \ + --disable-auto-locale \ + \ + --without-default-user \ + --without-aufs-threads \ + --without-pthreads \ + --without-aio \ + --without-dl \ + --without-openssl \ + --without-coss-membuf-size \ + --without-large-files \ + --without-build-environment \ + --without-valgrind-debug \ + --without-ipv6-split-stack \ + --without-ipv4-mapped \ + --without-localhost-ipv6 \ + --without-dns-cname \ + --without-filedescriptors \ + --without-cppunit-basedir \ + --without-po2html \ + " -- 2.39.2