summaryrefslogtreecommitdiffstats
path: root/source3/script/tests/full_audit_segfault/run.sh
blob: a2ba43f372ef5222cc9002366a0c26610abdcf71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
if [ $# -lt 1 ]; then
	cat <<EOF
Usage: run.sh VFSTEST
EOF
	exit 1
fi

TALLOC_FILL_FREE=0
export TALLOC_FILL_FREE

TESTBASE="$(dirname $0)"
VFSTEST="$VALGRIND $1"
shift 1
ADDARGS="$*"

incdir=$(dirname $0)/../../../../testprogs/blackbox
. $incdir/subunit.sh

failed=0

testit "vfstest" "$VFSTEST" -f "$TESTBASE/vfstest.cmd" "$ADDARGS" ||
	failed=$(expr $failed + 1)

exit $failed