r20963: remove unused functions, run LOCAL-TDR by default
[samba.git] / source4 / script / tests / test_local.sh
1 #!/bin/sh
2
3 local_tests="LOCAL-REPLACE LOCAL-TALLOC LOCAL-STRLIST"
4 local_tests="$local_tests LOCAL-IDTREE LOCAL-EVENT"
5 local_tests="$local_tests LOCAL-SOCKET LOCAL-MESSAGING LOCAL-IRPC"
6 local_tests="$local_tests LOCAL-NDR LOCAL-BINDING LOCAL-FILE LOCAL-REGISTRY"
7 local_tests="$local_tests LOCAL-SDDL LOCAL-PAC LOCAL-DBSPEED LOCAL-TDR "
8 local_tests="$local_tests LOCAL-NTLMSSP LOCAL-CRYPTO-MD4"
9 local_tests="$local_tests LOCAL-CRYPTO-MD5 LOCAL-CRYPTO-HMACMD5"
10 local_tests="$local_tests LOCAL-CRYPTO-SHA1 LOCAL-CRYPTO-HMACSHA1"
11 local_tests="$local_tests LOCAL-RESOLVE LOCAL-TORTURE"
12
13 if [ `uname` = "Linux" ]; then
14     # testing against the system iconv only makes sense for our 'reference' iconv
15     # behaviour
16     local_tests="$local_tests LOCAL-ICONV"
17 fi
18
19 if [ $# -lt 0 ]; then
20 cat <<EOF
21 Usage: test_local.sh
22 EOF
23 exit 1;
24 fi
25
26 incdir=`dirname $0`
27 . $incdir/test_functions.sh
28
29 # the local tests doesn't need smbd
30 SMBD_TEST_FIFO=""
31 export SMBD_TEST_FIFO
32
33 failed=0
34 for t in $local_tests; do
35         name="$t"
36         testit "$name" $VALGRIND bin/smbtorture $TORTURE_OPTIONS ncalrpc: $t "$*" || failed=`expr $failed + 1`
37 done
38
39 testok $0 $failed