5 executable=build/benchmark/$1
7 if [ "$1" == "--debug" ]; then
9 gdb --args $executable --catch_system_errors=no --log_level=test_suite
10 elif [ "$1" == "--backtrace" ]; then
12 gdb -batch -ex "run" -ex "thread apply all bt" -return-child-result --args $executable --catch_system_errors=yes
13 elif [ "$1" == "--valgrind" ]; then
15 valgrind --tool="memcheck" --suppressions=suppressions $executable
16 elif [ "$1" == "--callgrind" ]; then
18 valgrind --tool="callgrind" $executable
19 elif [ "$1" == "--quiet" ]; then
21 $executable --catch_system_errors=no
22 elif [ "$1" == "--drd" ]; then
24 valgrind --tool="drd" $executable
25 elif [ "$1" == "--helgrind" ]; then
27 valgrind --tool="helgrind" $executable
30 $executable --catch_system_errors=no --log_level=test_suite