dnl eCAP support requires loadable modules, which are enabled by default
if test "$use_loadable_modules" != "yes"
then
- AC_MSG_ERROR([
- eCAP support requires loadable modules. Please do not use
- --disable-loadable-modules with --enable-ecap.]);
+ AC_MSG_ERROR([eCAP support requires loadable modules. Please do not use --disable-loadable-modules with --enable-ecap.]);
fi
dnl eCAP support requires libecap
AC_CHECK_LIB([ecap], [main],
[ECAP_LIBS="-lecap"],
- [AC_MSG_FAILURE([
- eCAP support requires libecap library,
- but no usable library was found])]
+ AC_MSG_FAILURE([eCAP support requires libecap library, but no usable library was found])
)
fi
shift
fi
+# Things to catch
+errors="^ERROR|\ error:|\ Error\ |No\ such|assertion\ failed|FAIL:"
+
# Run a single test build by name
tmp="${1}"
if test -e ./test-suite/buildtests/${tmp}.opts ; then
echo "TESTING: ${tmp}"
rm -f -r bt${tmp} && mkdir bt${tmp} && cd bt${tmp}
../test-suite/buildtest.sh ../test-suite/buildtests/${tmp}
- grep -E "^ERROR|\ error:\ |No\ such|assertion\ failed|FAIL:" buildtest_*.log && exit 1
+ grep -E "${errors}" buildtest_*.log && exit 1
cd ..
exit 0
fi
arg=`echo "${f}" | sed s/\\.opts//`
echo "TESTING: ${arg}"
../test-suite/buildtest.sh ".${arg}"
- grep -E "^ERROR|\ error:\ |No\ such|assertion\ failed|FAIL:" buildtest_*.log && exit 1
+ grep -E "${errors}" buildtest_*.log && exit 1
cd ..
if test "${cleanup}" = "yes" ; then
echo "REMOVE: bt${layer}"
# --with-po2html=PATH \
# --with-tags=TAGS \
#
+# Following features require special support from other optional packages.
+# We can't test them automatically everywhere
+#
+# --enable-ecap \
+# --enable-win32-service \
+# --with-localhost-ipv6 \
+#
OPTS=" \
--enable-loadable-modules \
--enable-gnuregex \
--enable-delay-pools \
--enable-esi \
--enable-icap-client \
- --enable-ecap \
--enable-useragent-log \
--enable-referer-log \
--enable-wccp \
--enable-ntlm-fail-open \
--enable-external-acl-helpers=all \
--enable-mempools \
- --enable-win32-service \
--enable-unlinkd \
--enable-stacktraces \
--enable-cpu-profiling \
--with-dl \
--with-dns-cname \
--with-gnu-ld \
- --with-ipv4-mapped \
--with-ipv6-split-stack \
--with-large-files \
- --with-localhost-ipv6 \
--with-pic \
--with-pthreads \
--with-valgrind-debug \