test: in tests_all.sh, wrap calls to test scripts into shell functions.
[Samba.git] / source / script / tests / tests_all.sh
blob6153b6d3a8d78ca1f11099828a185ca4f69ddb78
1 local_s3() {
2 $SCRIPTDIR/test_local_s3.sh \
3 || failed=`expr $failed + $?`
6 smbtorture_s3() {
7 $SCRIPTDIR/test_smbtorture_s3.sh \
8 //$SERVER_IP/tmp $USERNAME $PASSWORD "" \
9 || failed=`expr $failed + $?`
12 smbtorture_s3_encrypted() {
13 echo "Testing encrypted"
14 $SCRIPTDIR/test_smbtorture_s3.sh \
15 //$SERVER_IP/tmp $USERNAME $PASSWORD "" "-e" \
16 || failed=`expr $failed + $?`
19 smbclient_s3() {
20 $SCRIPTDIR/test_smbclient_s3.sh $SERVER $SERVER_IP \
21 || failed=`expr $failed + $?`
24 smbclient_s3_encrypted() {
25 echo "Testing encrypted"
26 $SCRIPTDIR/test_smbclient_s3.sh $SERVER $SERVER_IP "-e" \
27 || failed=`expr $failed + $?`
30 wbinfo_s3() {
31 $SCRIPTDIR/test_wbinfo_s3.sh $WORKGROUP $SERVER $USERNAME $PASSWORD \
32 || failed=`expr $failed + $?`
35 ntlm_auth_s3() {
36 $SCRIPTDIR/test_ntlm_auth_s3.sh \
37 || failed=`expr $failed + $?`
40 posix_s3() {
41 eval "$LIB_PATH_VAR="\$SAMBA4SHAREDDIR:\$$LIB_PATH_VAR"; export $LIB_PATH_VAR"
42 eval echo "$LIB_PATH_VAR=\$$LIB_PATH_VAR"
43 SMBTORTURE4VERSION=`$SMBTORTURE4 --version`
44 if [ -n "$SMBTORTURE4" -a -n "$SMBTORTURE4VERSION" ];then
45 echo "Running Tests with Samba4's smbtorture"
46 echo $SMBTORTURE4VERSION
47 $SCRIPTDIR/test_posix_s3.sh \
48 //$SERVER_IP/tmp $USERNAME $PASSWORD "" \
49 || failed=`expr $failed + $?`
50 else
51 echo "Skip Tests with Samba4's smbtorture"
55 local_s3
56 smbtorture_s3
57 smbtorture_s3_encrypted
58 smbclient_s3
59 smbclient_s3_encrypted
60 wbinfo_s3
61 ntlm_auth_s3
62 posix_s3