selftest: Use TESTS env var to specify tests to run like Samba4 does.
authorKai Blin <kai@samba.org>
Fri, 2 May 2008 23:45:33 +0000 (01:45 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 6 May 2008 10:26:13 +0000 (12:26 +0200)
source/script/tests/selftest.sh
source/script/tests/tests_all.sh

index b53940ea408aa8e879b06f491728ceae4f292050..5f07e2d76e18b06e0f4c1e790dc2cd1208f1ed60 100755 (executable)
@@ -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=$?
index 5e215379f7ba060d5664053bb02335dc04b46f7c..6e5334da315a9dbeb9609d79341dccf66acf04f8 100755 (executable)
@@ -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