exit 1;
fi
+if [ -z "$VALGRIND" ]; then
+ export MALLOC_CHECK_=2
+fi
+
unc="$1"
username="$2"
password="$3"
exit 1;
fi
+if [ -z "$VALGRIND" ]; then
+ export MALLOC_CHECK_=2
+fi
+
server="$1"
username="$2"
password="$3"
esac
for t in $tests; do
echo Testing $t on $transport with $bindoptions
- testit bin/smbtorture $transport:"$server[$bindoptions]" -U"$username"%"$password" -W $domain $t "$*"
+ testit $VALGRIND bin/smbtorture $transport:"$server[$bindoptions]" -U"$username"%"$password" -W $domain $t "$*"
done
done
done
exit 1;
fi
+if [ -z "$VALGRIND" ]; then
+ export MALLOC_CHECK_=2
+fi
+
server="$1"
username="$2"
password="$3"
testit() {
trap "rm -f test.$$" EXIT
cmdline="$*"
- if ! $cmdline > test.$$ 2>&1; then
+ if ! $VALGRIND $cmdline > test.$$ 2>&1; then
cat test.$$;
rm -f test.$$;
echo "TEST FAILED - $cmdline";