Add --gdb or --valgrind to testitradar

This commit is contained in:
Stefan Bühler 2008-07-13 21:57:26 +02:00
parent 3fb87526a8
commit c17fb36423

View File

@ -1,4 +1,13 @@
#!/bin/bash
CMD="./build/default/src/icfp08radar localhost 17676"
./waf distclean && ./waf configure && ./waf build --targets icfp08radar
./build/default/src/icfp08radar localhost 17676
if [ "$1" == "--gdb" ]; then
CMD="gdb --args ${CMD}"
elif [ "$1" == "--valgrind" ]; then
CMD="valgrind --args ${CMD}"
fi
exec $CMD