3 # Runs a simple test (default: ./test/userprog.o)
6 # ./run.sh [test program] [gdb]
8 # If you include a 'gdb' argument, the your program will be launched with gdb.
9 # You can also supply a test program argument to run something besides the
15 export LD_LIBRARY_PATH=.
17 [ $# -gt 0 ] && [ "$1" != "gdb" ] && BIN=$1 && shift
19 if [ $# -gt 0 ] && [ "$1" = "gdb" ]; then