r22575: move script/tests/ -> selftest/
[sfrench/samba-autobuild/.git] / source4 / selftest / test_quick.sh
1 #!/bin/sh
2 # run a quick set of filesystem tests
3
4 ADDARGS="$*"
5
6 incdir=`dirname $0`
7 . $incdir/test_functions.sh
8
9 tests="BASE-UNLINK BASE-ATTR BASE-DELETE"
10 tests="$tests BASE-TCON BASE-OPEN"
11 tests="$tests BASE-CHKPATH RAW-QFSINFO RAW-QFILEINFO RAW-SFILEINFO"
12 tests="$tests RAW-MKDIR RAW-SEEK RAW-OPEN RAW-WRITE"
13 tests="$tests RAW-UNLINK RAW-READ RAW-CLOSE RAW-IOCTL RAW-RENAME"
14 tests="$tests RAW-EAS RAW-STREAMS"
15
16 for t in $tests; do
17     name="$t"
18     plantest "$name" dc $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS //\$SERVER/tmp -U"\$USERNAME"%"\$PASSWORD" $t
19 done
20
21 name=BASE-OPEN
22 plantest "ntvfs/cifs $name" dc $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS //\$NETBIOSNAME/cifs -U"\$USERNAME"%"\$PASSWORD" $name