tests_all.sh: Do not execute $SMB4TORTURE --version if it is not available.
[Samba.git] / source / script / tests / tests_all.sh
blobfa62a5129cc807b22597153d5b373e2c303430d8
1 local_s3() {
2 echo "RUNNING TESTS local_s3"
3 $SCRIPTDIR/test_local_s3.sh \
4 || failed=`expr $failed + $?`
7 smbtorture_s3() {
8 echo "RUNNING TESTS smbtorture_s3"
9 $SCRIPTDIR/test_smbtorture_s3.sh \
10 //$SERVER_IP/tmp $USERNAME $PASSWORD "" \
11 || failed=`expr $failed + $?`
14 smbtorture_s3_encrypted() {
15 echo "RUNNING TESTS smbtorture_s3_encrypted"
16 $SCRIPTDIR/test_smbtorture_s3.sh \
17 //$SERVER_IP/tmp $USERNAME $PASSWORD "" "-e" \
18 || failed=`expr $failed + $?`
21 smbclient_s3() {
22 echo "RUNNING TESTS smbclient_s3"
23 $SCRIPTDIR/test_smbclient_s3.sh $SERVER $SERVER_IP \
24 || failed=`expr $failed + $?`
27 smbclient_s3_encrypted() {
28 echo "RUNNING TESTS smbclient_s3_encrypted"
29 $SCRIPTDIR/test_smbclient_s3.sh $SERVER $SERVER_IP "-e" \
30 || failed=`expr $failed + $?`
33 wbinfo_s3() {
34 echo "RUNNING TESTS wbinfo_s3"
35 $SCRIPTDIR/test_wbinfo_s3.sh $WORKGROUP $SERVER $USERNAME $PASSWORD \
36 || failed=`expr $failed + $?`
39 ntlm_auth_s3() {
40 echo "RUNNING TESTS ntlm_auth_s3"
41 $SCRIPTDIR/test_ntlm_auth_s3.sh \
42 || failed=`expr $failed + $?`
45 net_s3() {
46 echo "RUNNING TESTS net_s3"
47 $SCRIPTDIR/test_net_s3.sh \
48 || failed=`expr $failed + $?`
51 posix_s3() {
52 echo "RUNNING TESTS posix_s3"
53 eval "$LIB_PATH_VAR="\$SAMBA4SHAREDDIR:\$$LIB_PATH_VAR"; export $LIB_PATH_VAR"
54 eval echo "$LIB_PATH_VAR=\$$LIB_PATH_VAR"
55 if [ -x "$SMBTORTURE4" ]; then
56 SMBTORTURE4VERSION=`$SMBTORTURE4 --version`
58 if [ -n "$SMBTORTURE4" -a -n "$SMBTORTURE4VERSION" ];then
59 echo "Running Tests with Samba4's smbtorture"
60 echo $SMBTORTURE4VERSION
61 $SCRIPTDIR/test_posix_s3.sh \
62 //$SERVER_IP/tmp $USERNAME $PASSWORD "" \
63 || failed=`expr $failed + $?`
64 else
65 echo "Skip Tests with Samba4's smbtorture"
66 echo "Try to compile with --with-smbtorture4-path=PATH to enable"
70 if test "x$TESTS" = "x" ; then
71 local_s3
72 smbtorture_s3
73 smbtorture_s3_encrypted
74 smbclient_s3
75 smbclient_s3_encrypted
76 wbinfo_s3
77 ntlm_auth_s3
78 net_s3
79 posix_s3
80 else
81 for THIS_TEST in $TESTS; do
82 $THIS_TEST
83 done