s4:kdc/db-glue: allow principals in form of computer@EXAMPLE.COM
[Samba.git] / source3 / script / tests / stream-depot / run.sh
blob38ef283294899b460b82fe66d49cbf7ab4986e0d
1 #!/bin/sh
2 if [ $# -lt 2 ]; then
3 cat <<EOF
4 Usage: run.sh VFSTEST PREFIX
5 EOF
6 exit 1;
7 fi
9 TESTBASE=`dirname $0`
10 VFSTEST=$1
11 PREFIX=$2
12 shift 2
13 ADDARGS="$*"
15 VFSTEST_PREFIX=vfstest
16 VFSTEST_TMPDIR=$(mktemp -d ${PREFIX}/${VFSTEST_PREFIX}_XXXXXX)
18 incdir=`dirname $0`/../../../../testprogs/blackbox
19 . $incdir/subunit.sh
21 failed=0
23 cd $VFSTEST_TMPDIR || exit 1
25 testit "vfstest" $VFSTEST -f $TESTBASE/vfstest.cmd $ADDARGS || failed=`expr $failed + 1`
26 testname=".streams check"
27 subunit_start_test $testname
28 NUM=`find .streams | wc -l`
29 if [ $NUM -ne 3 ] ; then
30 echo "streams_depot left ${NUM} in .streams, expected 3" | subunit_fail_test $testname
31 failed=`expr $failed + 1`
32 else
33 subunit_pass_test $testname
36 exit $failed