2 # run a single regression test
9 export USE_VALGRIND="valgrind -q --sim-hints=lax-ioctls"
13 export USE_VALGRIND="valgrind --sim-hints=lax-ioctls --leak-check=full --show-reachable=yes --log-file=/tmp/valgrind-%p.log"
19 *.failed|*.new|*.ok|*.log|*.tmp) exit 0 ;;
25 if test "$TEST_CONFIG"x = x; then
26 TEST_CONFIG=$SRCDIR/test_config
33 test_name=`echo $test_dir | sed -e 's;.*/;;'`
34 if [ -f $test_dir ] ; then
37 if [ ! -d $test_dir ] ; then
38 echo "The test '$test_name' does not exist."
41 if [ -z "`ls $test_dir`" ]; then
44 if [ -f $test_dir/name ]; then
45 test_description=`cat $test_dir/name`
50 rm -f $test_name.ok $test_name.failed
51 #echo -e -n "$test_name: $test_description:\r"
53 if [ -f $test_dir/script ]; then
56 test_base=`echo $test_name | sed -e 's/_.*//'`
57 default_script=$SRCDIR/defaults/${test_base}_script
58 if [ -f $default_script ]; then
59 . $SRCDIR/defaults/${test_base}_script
61 echo "$test_name: Missing test script $default_script!"
63 [ -f $test_name.failed ] && cat $test_name.failed
66 if [ "$SKIP_UNLINK" != "true" ] ; then