]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
test: add possibility to select tests to run via tests_all.sh (make test)
authorMichael Adam <obnox@samba.org>
Mon, 31 Mar 2008 11:33:12 +0000 (13:33 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 31 Mar 2008 15:22:03 +0000 (17:22 +0200)
This allows to select the tests to run with tests_all.sh by setting
the environment variable "RUNTESTS". Example:

RUNTESTS="smbclient_s3_encrypted wbinfo_s3" make test

Michael

source/script/tests/tests_all.sh

index 6153b6d3a8d78ca1f11099828a185ca4f69ddb78..c2534679d730e0dfcaaae32106675673cbc15522 100755 (executable)
@@ -52,12 +52,18 @@ posix_s3() {
        fi
 }
 
-local_s3
-smbtorture_s3
-smbtorture_s3_encrypted
-smbclient_s3
-smbclient_s3_encrypted
-wbinfo_s3
-ntlm_auth_s3
-posix_s3
+if test "x$RUNTESTS" = "x" ; then
+       local_s3
+       smbtorture_s3
+       smbtorture_s3_encrypted
+       smbclient_s3
+       smbclient_s3_encrypted
+       wbinfo_s3
+       ntlm_auth_s3
+       posix_s3
+else
+       for THIS_TEST in $RUNTESTS; do
+               $THIS_TEST
+       done
+fi