File: test_wrap

package info (click to toggle)
ctdb 1.0.112-12-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,292 kB
  • ctags: 4,779
  • sloc: ansic: 43,144; sh: 10,967; xml: 3,034; makefile: 451; perl: 107; python: 101; awk: 59
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

"$@"