From dc70a6b4e7d4ada5b9aa32712aead93262b360b2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 Sep 2006 21:05:03 +0000 Subject: r18569: add really simple testing of the 'simple' ntvfs backend, so we know when it breaks. It isn't much good as a template for developers to use unless it works :-) (This used to be commit 262bee07dcb140b413d5ae5a8a754b3e57235323) --- source4/script/tests/test_simple.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 source4/script/tests/test_simple.sh (limited to 'source4/script/tests/test_simple.sh') diff --git a/source4/script/tests/test_simple.sh b/source4/script/tests/test_simple.sh new file mode 100755 index 0000000000..fd63c28a79 --- /dev/null +++ b/source4/script/tests/test_simple.sh @@ -0,0 +1,34 @@ +#!/bin/sh +# run a quick set of filesystem tests + +if [ $# -lt 3 ]; then +cat < +EOF +exit 1; +fi + +unc="$1" +username="$2" +password="$3" +start="$4" +shift 4 +ADDARGS="$*" + +incdir=`dirname $0` +. $incdir/test_functions.sh + +tests="BASE-RW1" + +failed=0 +for t in $tests; do + if [ ! -z "$start" -a "$start" != $t ]; then + continue; + fi + start="" + name="$t" + testit "$name" $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t || failed=`expr $failed + 1` +done + +testok $0 $failed + -- cgit