diff options
author | Michael Adam <obnox@samba.org> | 2008-03-31 13:33:12 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-04-04 12:37:29 +0200 |
commit | e2513258d3ecbc422c23b797ddaf9518d220082a (patch) | |
tree | cf423f528b762adc4831a22b1cbac0f41bafd540 /source/script | |
parent | bffa0914496d6a6aba6bfc96f03abf0d76af4e73 (diff) | |
download | samba-e2513258d3ecbc422c23b797ddaf9518d220082a.tar.gz samba-e2513258d3ecbc422c23b797ddaf9518d220082a.tar.xz samba-e2513258d3ecbc422c23b797ddaf9518d220082a.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
(cherry picked from commit bf4af79f050cceb6611a8aa3d893b59b816a41ce)
Diffstat (limited to 'source/script')
-rwxr-xr-x | source/script/tests/tests_all.sh | 22 |
1 files changed, 14 insertions, 8 deletions
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 |