TESTS: move the util tests into "slow-tests" (i.e. optional)

So this this test is timing sensitive and can easily fail on slow
build farm machines. So I have enabled it on the --enable-slow-tests
configure option and put this into ./check as the default.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
Angus Salkeld 2012-03-07 16:35:11 +11:00
parent a4beed9bbf
commit df9ff8fdad
2 changed files with 9 additions and 3 deletions

5
check
View File

@ -60,10 +60,11 @@ then
fi
check() {
echo "./configure $1 --enable-debug --enable-fatal-warnings --quiet"
options="$1 --enable-debug --enable-slow-tests --enable-fatal-warnings --quiet"
echo "./configure $options"
echo "ENV CFLAGS=\"$CFLAGS\""
echo "ENV MAKEFLAGS=\"$MAKEFLAGS\""
( ./configure $1 --enable-debug --enable-fatal-warnings --quiet )
( ./configure $options )
make check
if [ $? -ne 0 ]
then

View File

@ -89,13 +89,18 @@ bench_log_LDADD = $(LIB_RT) $(top_builddir)/lib/libqb.la
if HAVE_CHECK
EXTRA_DIST += resources.test
TESTS = array.test map.test util.test rb.test log.test loop.test ipc.test resources.test
TESTS = array.test map.test rb.test log.test loop.test ipc.test resources.test
resources.log: rb.log log.log ipc.log
check_PROGRAMS = array.test map.test rb.test log.test loop.test ipc.test util.test
check_SCRIPTS = resources.test
if HAVE_SLOW_TESTS
TESTS += util.test
check_PROGRAMS += util.test
endif
array_test_SOURCES = check_array.c $(top_builddir)/include/qb/qbarray.h
array_test_CFLAGS = @CHECK_CFLAGS@ -I$(top_srcdir)/include
array_test_LDADD = $(top_builddir)/lib/libqb.la $(LIB_RT) @CHECK_LIBS@