From e2513258d3ecbc422c23b797ddaf9518d220082a Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 31 Mar 2008 13:33:12 +0200 Subject: [PATCH] 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) --- source/script/tests/tests_all.sh | 22 ++++++++++++++-------- 1 file 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 -- 2.11.4.GIT