summaryrefslogtreecommitdiff
path: root/source3/script
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2008-05-03 01:45:33 +0200
committerMichael Adam <obnox@samba.org>2008-05-06 12:26:13 +0200
commit60fedc43e75cebbef10a94cacfe9733e947b1386 (patch)
tree2ca026a8590e86edca72ede41669bbeca0cc5f21 /source3/script
parent307c320c07132d91710a42c397141c98c5777848 (diff)
downloadsamba-60fedc43e75cebbef10a94cacfe9733e947b1386.tar.gz
samba-60fedc43e75cebbef10a94cacfe9733e947b1386.tar.bz2
samba-60fedc43e75cebbef10a94cacfe9733e947b1386.zip
selftest: Use TESTS env var to specify tests to run like Samba4 does.
(This used to be commit 6fb1fe803ccbd3af2946fcbe4586c11d394d5dc2)
Diffstat (limited to 'source3/script')
-rwxr-xr-xsource3/script/tests/selftest.sh4
-rwxr-xr-xsource3/script/tests/tests_all.sh4
2 files changed, 4 insertions, 4 deletions
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