From 0c3b8e2cab3eecd31d73022d52ab918f68b82131 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 31 Mar 2008 13:33:12 +0200 Subject: 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) --- source3/script/tests/tests_all.sh | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'source3') 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 -- cgit