s3:script/tests: add a test for VSS write behaviour
[Samba.git] / ctdb / tests / scripts / test_wrap
blob3db3180ae98964264880bfc4b789bb923b4c9054
1 #!/bin/bash
3 # Execute the given command. The intention is that it is a function
4 # from "${TEST_SCRIPTS_DIR}/integration.bash".
6 PATH="$(dirname $0):${PATH}"
8 TEST_SCRIPTS_DIR=$(dirname $0)
10 # We need the test binaries (i.e. tests/bin/) to be in $PATH. If they
11 # aren't already in $PATH then we know that tests/bin/ sits alongside
12 # tests/scripts/.
13 f="fetch_ring"
14 if [ ! $(which $f >/dev/null 2>&1) ] ; then
15 d=$(dirname "$TEST_SCRIPTS_DIR")/bin
16 [ -x "$d/$f" ] && PATH="$d:$PATH"
19 . "${TEST_SCRIPTS_DIR}/integration.bash"
21 "$@"