diff options
author | Michael Adam <obnox@samba.org> | 2008-03-31 13:33:12 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-31 17:22:03 +0200 |
commit | 0c3b8e2cab3eecd31d73022d52ab918f68b82131 (patch) | |
tree | 9e504c2d5887ea0e68b06f4bb63537f47282da14 /source3/script/tests | |
parent | e3aef196e44846ab8f8c34932eb6cc3037809d76 (diff) | |
download | samba-0c3b8e2cab3eecd31d73022d52ab918f68b82131.tar.gz samba-0c3b8e2cab3eecd31d73022d52ab918f68b82131.tar.bz2 samba-0c3b8e2cab3eecd31d73022d52ab918f68b82131.zip |
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
(This used to be commit bf4af79f050cceb6611a8aa3d893b59b816a41ce)
Diffstat (limited to 'source3/script/tests')
-rwxr-xr-x | source3/script/tests/tests_all.sh | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/source3/script/tests/tests_all.sh b/source3/script/tests/tests_all.sh index 6153b6d3a8..c2534679d7 100755 --- a/source3/script/tests/tests_all.sh +++ b/source3/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 |