1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

selftest: Use TESTS env var to specify tests to run like Samba4 does.

This commit is contained in:
Kai Blin 2008-05-03 01:45:33 +02:00 committed by Michael Adam
parent 48446f0c79
commit 6fb1fe803c
2 changed files with 4 additions and 4 deletions

View File

@ -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=$?

View File

@ -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