TMP: add a ctdb snapshot of current ctdb master (git://git.samba.org/ctdb.git) to...
[obnox/samba/samba-obnox.git] / ctdb / tests / scripts / test_wrap
1 #!/bin/bash
2
3 # Execute the given command.  The intention is that it is a function
4 # from ctdb_test_functions.bash.
5
6 PATH="$(dirname $0):${PATH}"
7
8 f="ctdb_bench"
9 if [ ! $(which $f >/dev/null 2>&1) ] ; then
10     d=$(dirname $(dirname $0))/bin
11     [ -x "$d/$f" ] && PATH="$d:$PATH"
12 fi
13
14 . ctdb_test_functions.bash
15
16 "$@"