mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
r4319: make it easy to use valgrind in the test_posix.sh test suite
This commit is contained in:
parent
32264c6c30
commit
7c09a3ea58
@ -20,7 +20,7 @@ testit() {
|
|||||||
trap "rm -f test.$$" EXIT
|
trap "rm -f test.$$" EXIT
|
||||||
|
|
||||||
cmdline="$*"
|
cmdline="$*"
|
||||||
if ! $cmdline > test.$$ 2>&1; then
|
if ! $cmdline > test.$$; then
|
||||||
cat test.$$;
|
cat test.$$;
|
||||||
rm -f test.$$;
|
rm -f test.$$;
|
||||||
echo "TEST FAILED - $cmdline";
|
echo "TEST FAILED - $cmdline";
|
||||||
@ -52,5 +52,5 @@ for t in $tests; do
|
|||||||
fi
|
fi
|
||||||
start=""
|
start=""
|
||||||
echo Testing $t
|
echo Testing $t
|
||||||
testit bin/smbtorture $unc -U"$username"%"$password" $t
|
testit $VALGRIND bin/smbtorture $unc -U"$username"%"$password" $t
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user