s3-rpcclient: allow to set offered size for enumkey command.
[ira/wip.git] / source3 / script / tests / tests_all.sh
1 local_s3() {
2         echo "RUNNING TESTS local_s3"
3         $SCRIPTDIR/test_local_s3.sh \
4         || failed=`expr $failed + $?`
5 }
6
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 + $?`
12 }
13
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 + $?`
19 }
20
21 smbclient_s3() {
22         echo "RUNNING TESTS smbclient_s3"
23         $SCRIPTDIR/test_smbclient_s3.sh $SERVER $SERVER_IP $USERNAME $PASSWORD \
24         || failed=`expr $failed + $?`
25 }
26
27 smbclient_s3_encrypted() {
28         echo "RUNNING TESTS smbclient_s3_encrypted"
29         $SCRIPTDIR/test_smbclient_s3.sh $SERVER $SERVER_IP $USERNAME $PASSWORD "-e" \
30         || failed=`expr $failed + $?`
31 }
32
33 wbinfo_s3() {
34         echo "RUNNING TESTS wbinfo_s3"
35         $SCRIPTDIR/test_wbinfo_s3.sh $WORKGROUP $SERVER $USERNAME $PASSWORD \
36         || failed=`expr $failed + $?`
37 }
38
39 ntlm_auth_s3() {
40         echo "RUNNING TESTS ntlm_auth_s3"
41         $SCRIPTDIR/test_ntlm_auth_s3.sh \
42         || failed=`expr $failed + $?`
43 }
44
45 net_s3() {
46         echo "RUNNING TESTS net_s3"
47         $SCRIPTDIR/test_net_s3.sh \
48         || failed=`expr $failed + $?`
49 }
50
51 testparm_s3() {
52         echo "RUNNING TESTS testparm_s3"
53         $SCRIPTDIR/test_testparm_s3.sh \
54         || failed=`expr $failed + $?`
55 }
56
57 posix_s3() {
58         echo "RUNNING TESTS posix_s3"
59         eval "$LIB_PATH_VAR="\$SAMBA4SHAREDDIR:\$$LIB_PATH_VAR"; export $LIB_PATH_VAR"
60         eval echo "$LIB_PATH_VAR=\$$LIB_PATH_VAR"
61         if [ -x "$SMBTORTURE4" ]; then
62                 SMBTORTURE4VERSION=`$SMBTORTURE4 --version`
63         fi
64         if [ -n "$SMBTORTURE4" -a -n "$SMBTORTURE4VERSION" ];then
65                 echo "Running Tests with Samba4's smbtorture"
66                 echo $SMBTORTURE4VERSION
67                 $SCRIPTDIR/test_posix_s3.sh \
68                         //$SERVER_IP/tmp $USERNAME $PASSWORD "" \
69                 || failed=`expr $failed + $?`
70         else
71                 echo "Skip Tests with Samba4's smbtorture"
72                 echo "Try to compile with --with-smbtorture4-path=PATH to enable"
73         fi
74 }
75
76 failed=0
77
78 if test "x$TESTS" = "x" ; then
79         local_s3
80         smbtorture_s3
81         smbtorture_s3_encrypted
82         smbclient_s3
83         smbclient_s3_encrypted
84         wbinfo_s3
85         ntlm_auth_s3
86         net_s3
87         testparm_s3
88         posix_s3
89 else
90         for THIS_TEST in $TESTS; do
91                 $THIS_TEST
92         done
93 fi
94