Add --gdb or --valgrind to testitradar
This commit is contained in:
parent
3fb87526a8
commit
c17fb36423
11
testitradar
11
testitradar
@ -1,4 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
CMD="./build/default/src/icfp08radar localhost 17676"
|
||||||
|
|
||||||
./waf distclean && ./waf configure && ./waf build --targets icfp08radar
|
./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
|
||||||
|
Loading…
Reference in New Issue
Block a user