e2fsprogs/tests/test_script.in

33 lines
598 B
Plaintext
Raw Normal View History

1997-04-26 18:00:26 +04:00
#!/bin/sh
# Run all or specified test scripts
1997-04-26 18:00:26 +04:00
#
case "$1" in
--valgrind)
export USE_VALGRIND="valgrind -q --sim-hints=lax-ioctls"
shift;
;;
--valgrind-leakcheck)
export USE_VALGRIND="valgrind --sim-hints=lax-ioctls --leak-check=full --show-reachable=yes --log-file=/tmp/valgrind-%p.log"
shift;
;;
esac
1997-04-26 18:00:26 +04:00
if test "$1"x = x ; then
TESTS=`ls -d $SRCDIR/[a-zA-Z]_*`
1997-04-26 18:00:26 +04:00
else
1997-04-29 18:53:37 +04:00
TESTS=
for i; do
1997-04-29 21:48:10 +04:00
case $i in
[a-zA-Z]) TESTS="$TESTS $SRCDIR/${i}_*" ;;
*) TESTS="$TESTS $SRCDIR/$i" ;;
esac
1997-04-29 18:53:37 +04:00
done
1997-04-26 18:00:26 +04:00
fi
for test_dir in $TESTS; do
./test_one $test_dir
done
$SRCDIR/test_post