File: test_wrap

package info (click to toggle)
ctdb 1.12%2Bgit20120201-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,656 kB
  • sloc: ansic: 61,736; sh: 18,367; xml: 3,887; python: 1,220; makefile: 554; perl: 319; awk: 118
file content (16 lines) | stat: -rwxr-xr-x 315 bytes parent folder | download | duplicates (2)
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 ctdb_test_functions.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

. ctdb_test_functions.bash

"$@"