3
test "x$RUNDUMA" = "x1" || { echo "*** duma tests skipped by default, use 'make check RUNDUMA=1' to activate (but don't report bugs about timeouts!)"; exit 77; }
4
LIBDIRS=`../libtool --config | grep sys_lib_search_path_spec | sed -e 's/.*"\(.*\)"/\1/'`
5
if test -z "$LIBDUMA"; then
7
if test -f "$i/libduma.so"; then
8
LIBDUMA="$i/libduma.so"
13
test -f "$LIBDUMA" || { echo "*** duma not found, skipping test"; exit 77;}
15
DUMA_MALLOC_0_STRATEGY=1
16
DUMA_OUTPUT_FILE=duma.log
20
export CK_DEFAULT_TIMEOUT=40
21
export DUMA_FILL DUMA_MALLOC_0_STRATEGY DUMA_OUTPUT_FILE DUMA_DISABLE_BANNER LIBPRELOAD
22
echo "--- starting clamd under duma to detect overruns"
23
CLAMD_WRAPPER=$abs_srcdir/preload_run.sh $abs_srcdir/check_clamd.sh
24
if test $? -ne 0; then
25
echo "*** DUMA has detected errors"
27
rm -f duma.log duma2.log
31
echo "--- starting clamd under duma to detect underruns"
32
DUMA_OUTPUT_FILE=duma2.log
34
export DUMA_PROTECT_BELOW
36
CLAMD_TEST_UNIQ1=3 CLAMD_TEST_UNIQ2=4 CLAMD_WRAPPER=$abs_srcdir/preload_run.sh $abs_srcdir/check_clamd.sh
37
if test $? -ne 0; then
38
echo "*** DUMA has detected errors"
40
rm -f duma.log duma2.log