1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-06 16:23:49 +03:00
Files
samba-mirror/source/script/tests/test_local.sh
Jelmer Vernooij 053d5a40bc r21029: - Remove now unused failure checking code
- Use --list option for smbtorture for local and nbt tests as well
2007-10-10 14:44:22 -05:00

32 lines
587 B
Bash
Executable File

#!/bin/sh
local_tests=`bin/smbtorture --list | grep "^LOCAL-" | xargs`
if [ `uname` = "Linux" ]; then
# testing against the system iconv only makes sense for our 'reference' iconv
# behaviour
local_tests="$local_tests LOCAL-ICONV"
fi
if [ $# -lt 0 ]; then
cat <<EOF
Usage: test_local.sh
EOF
exit 1;
fi
incdir=`dirname $0`
. $incdir/test_functions.sh
# the local tests don't need smbd
SMBD_TEST_FIFO=""
export SMBD_TEST_FIFO
failed=0
for t in $local_tests; do
name="$t"
testit "$name" $VALGRIND bin/smbtorture $TORTURE_OPTIONS ncalrpc: $t "$*"
done
testok $0 $failed