dsdb: Do not refresh the schema using the wrong event context
[Samba/wip.git] / source3 / script / tests / xattr-tdb-1 / run.sh
blobea7a4cbb2884242241456ce9d3f1bbb24bebfe15
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 test_vfstest()
27 cmd='$VFSTEST -f $TESTBASE/vfstest.cmd $ADDARGS '
28 out=`eval $cmd`
29 ret=$?
30 rm -f $tmpfile
32 if [ $ret != 0 ] ; then
33 echo "$out"
34 echo "command failed"
35 false
36 return
39 echo "$out" | grep "NT_STATUS_ACCESS_DENIED" >/dev/null 2>&1
41 if [ $? = 0 ] ; then
42 # got ACCESS_DENIED .. fail
43 echo vfstest got NT_STATUS_ACCESS_DENIED
44 false
45 else
46 true
50 testit "vfstest" test_vfstest || failed=`expr $failed + 1`
52 exit $failed