validate usages of $this in default values of constructor parameters
[hiphop-php.git] / hphp / tools / run_test_binary.sh
blobfc7cc2ad3c795c6067a7f17c774895495acc90ce
1 #!/bin/sh
3 # Helper for running TestExt from an fbmake build.
5 # ./run_test_ext.sh
8 unset CDPATH
10 DIR="$( cd "$( dirname "$0" )" && pwd )"
12 # Tools don't agree on whether to pass relative or absolute paths, so accept
13 # both.
14 TEST_BIN="${DIR}/../../$1"
15 if [ ! -x "${TEST_BIN}" ]; then
16 TEST_BIN="$1"
19 cd "${DIR}/../" && "${TEST_BIN}" "$2" "$3" "$4"