3 # Runs a simple test (default: ./barrier/barrier)
5 # ./run.sh [test program] [OPTIONS]
7 # ./run.sh [gdb [test program]]
9 # If you include a 'gdb' argument, the your program will be launched with gdb.
10 # You can also supply a test program argument to run something besides the
14 # Get the directory in which this script is located
17 BIN=${BINDIR}/barrier/barrier
20 export LD_LIBRARY_PATH=${BINDIR}/..
22 export DYLD_LIBRARY_PATH=${BINDIR}/..
24 [ $# -gt 0 ] && [ "$1" = "gdb" ] && PREFIX=gdb && shift
25 [ $# -gt 0 ] && [ -e "$1" ] && BIN="$1" && shift