From 60fedc43e75cebbef10a94cacfe9733e947b1386 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Sat, 3 May 2008 01:45:33 +0200 Subject: selftest: Use TESTS env var to specify tests to run like Samba4 does. (This used to be commit 6fb1fe803ccbd3af2946fcbe4586c11d394d5dc2) --- source3/script/tests/selftest.sh | 4 ++-- source3/script/tests/tests_all.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/script/tests') diff --git a/source3/script/tests/selftest.sh b/source3/script/tests/selftest.sh index b53940ea40..5f07e2d76e 100755 --- a/source3/script/tests/selftest.sh +++ b/source3/script/tests/selftest.sh @@ -6,7 +6,7 @@ if [ $# != 3 ]; then fi SMBTORTURE4=$3 -TESTS=$2 +SUBTESTS=$2 ## ## create the test directory @@ -290,7 +290,7 @@ START=`date` failed=0 - . $SCRIPTDIR/tests_$TESTS.sh + . $SCRIPTDIR/tests_$SUBTESTS.sh exit $failed ) failed=$? diff --git a/source3/script/tests/tests_all.sh b/source3/script/tests/tests_all.sh index 5e215379f7..6e5334da31 100755 --- a/source3/script/tests/tests_all.sh +++ b/source3/script/tests/tests_all.sh @@ -64,7 +64,7 @@ posix_s3() { fi } -if test "x$RUNTESTS" = "x" ; then +if test "x$TESTS" = "x" ; then local_s3 smbtorture_s3 smbtorture_s3_encrypted @@ -75,7 +75,7 @@ if test "x$RUNTESTS" = "x" ; then net_registry posix_s3 else - for THIS_TEST in $RUNTESTS; do + for THIS_TEST in $TESTS; do $THIS_TEST done fi -- cgit