diff options
author | Kai Blin <kai@samba.org> | 2008-05-03 01:45:33 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-06-23 14:17:15 +0200 |
commit | 68472fa4e29e2ac059197b0b212f890f4cc8f522 (patch) | |
tree | a71c549025dc9dd8348e88431af20487240f7e1e | |
parent | 17345a0fb56723104ec0e28a991a8fd424bdc48b (diff) | |
download | samba-68472fa4e29e2ac059197b0b212f890f4cc8f522.tar.gz |
selftest: Use TESTS env var to specify tests to run like Samba4 does.
(cherry picked from commit 6fb1fe803ccbd3af2946fcbe4586c11d394d5dc2)
(cherry picked from commit 11252c8faff0373bf16b7bc42d65dbc5cf5ec57d)
-rwxr-xr-x | source/script/tests/selftest.sh | 4 | ||||
-rwxr-xr-x | source/script/tests/tests_all.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/script/tests/selftest.sh b/source/script/tests/selftest.sh index b53940ea408..5f07e2d76e1 100755 --- a/source/script/tests/selftest.sh +++ b/source/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/source/script/tests/tests_all.sh b/source/script/tests/tests_all.sh index 5e215379f7b..6e5334da315 100755 --- a/source/script/tests/tests_all.sh +++ b/source/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 |