summaryrefslogtreecommitdiff
path: root/test/run.sh
blob: 194e0b3f41a85dce208f6306498e24db9ee91991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

rm -f debug.log child.log

ulimit -c unlimited
ulimit -t 120

unset LANG
unset LC_MESSAGES

# Enable glibc heap consistency checks, and memory randomization.
MALLOC_CHECK_=2
MALLOC_PERTURB_=`expr $RANDOM % 255 2>/dev/null`
export MALLOC_CHECK_ MALLOC_PERTURB_

export TEST_QUIET=${TEST_QUIET:-1}

RETVAL=0

for f in $*; do
    if ${HARNESS} ./$f ${SRCDIR}; then
	:
    else
	RETVAL=$?
    fi
done

exit $RETVAL