summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/scripts/test_wrap
blob: df12e4b731f6a9192270b29a312164ead1bba0bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# Execute the given command.  The intention is that it is a function
# from "${TEST_SCRIPTS_DIR}/integration.bash".

PATH="$(dirname $0):${PATH}"

f="ctdb_bench"
if [ ! $(which $f >/dev/null 2>&1) ] ; then
    d=$(dirname $(dirname $0))/bin
    [ -x "$d/$f" ] && PATH="$d:$PATH"
fi

. "${TEST_SCRIPTS_DIR}/integration.bash"

"$@"