2 # A script for testing compilability of different configurations
3 # (c) 2004--2010 Martin Mares <mj@ucw.cz>
10 MAKEOPTS=${MAKEOPTS:--j8}
23 echo "### Test $TEST: $@ ###" | tee $TDIR/log
32 *) ../../configure $CONFIG $ARGS || die "CANNOT CONFIGURE"
35 make $MAKEOPTS || die FAILED
36 echo >&3 " COMPILATION PASSED"
37 if [ -z "$SKIP_TESTS" ] ; then
38 make -k tests || die "TESTS FAILED"
39 echo >&3 " TESTS PASSED"
46 if [ "$1" == DARWIN ] ; then
47 # All tests on Darwin need CONFIG_SHARED, due to libcharset collision
48 # only visible with static linking.
50 try debug/default.cfg $FLAGS CONFIG_PCRE # `make tests' does not work with non-local builds with shared libs
51 elif [ -n "$1" ] ; then
54 try default.cfg CONFIG_LOCAL
55 try debug/default.cfg # debugging configuration
56 try debug/default.cfg -CONFIG_THREADS # non-threaded configuration
57 try debug/default.cfg -CONFIG_UCW_TLS # threaded, but no TLS support in gcc
58 try debug/default.cfg -CONFIG_EPOLL # without epoll