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 CONFIG_LOCAL $ARGS || die "CANNOT CONFIGURE"
35 make $MAKEOPTS || die FAILED
36 echo >&3 " COMPILATION PASSED"
37 if [ -z "$SKIP_TESTS" ] ; then
38 make -k -j1 tests || die "TESTS FAILED"
39 echo >&3 " TESTS PASSED"
46 if [ "$1" == DARWIN ] ; then
47 # All tests on Darwin need CONFIG_SHARED, due to libucw-charset collision
48 # only visible with static linking.
50 try debug/default.cfg $FLAGS CONFIG_UCW_PCRE # `make tests' does not work with non-local builds with shared libs
51 elif [ -n "$1" ] ; then
54 try default.cfg # default configuration
55 try default.cfg -CONFIG_DEBUG # with no debugging code
56 try debug/default.cfg # debugging configuration
57 try debug/default.cfg -CONFIG_SHARED # statically linked
58 try debug/default.cfg -CONFIG_UCW_THREADS # non-threaded configuration
59 try debug/default.cfg -CONFIG_UCW_TLS # threaded, but no TLS support in gcc
60 try debug/default.cfg -CONFIG_UCW_EPOLL -CONFIG_UCW_MONOTONIC_CLOCK # without epoll and monotonic clock
61 try debug/default.cfg CONFIG_UCW_POSIX_REGEX # different regex libs
62 try debug/default.cfg CONFIG_UCW_PCRE