From: Michael Adam Date: Mon, 31 Mar 2008 11:33:12 +0000 (+0200) Subject: test: add possibility to select tests to run via tests_all.sh (make test) X-Git-Tag: samba-3.3.0pre1~3000 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf4af79f050cceb6611a8aa3d893b59b816a41ce;p=thirdparty%2Fsamba.git test: add possibility to select tests to run via tests_all.sh (make test) 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 --- diff --git a/source/script/tests/tests_all.sh b/source/script/tests/tests_all.sh index 6153b6d3a8d..c2534679d73 100755 --- a/source/script/tests/tests_all.sh +++ b/source/script/tests/tests_all.sh @@ -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