diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-11-28 22:04:49 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-12-04 10:30:10 +0000 |
| commit | f78ced1cb28035184b09382bcef179df3aa352a2 (patch) | |
| tree | 6b34417c7d2482c4a6cf1bc1a3db38be7e615590 /run | |
| parent | 87cabfe2ec674f5388e554cbbe79f270648e7142 (diff) | |
Add more options to bench script.
Diffstat (limited to 'run')
| -rwxr-xr-x | run/bench | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -4,4 +4,15 @@ private=../libdcp1-test-private export LD_LIBRARY_PATH=build/src:build/asdcplib/src:$LD_LIBRARY_PATH -build/test/bench $private +if [ "$1" == "--debug" ]; then + shift + gdb --args build/test/bench $private +elif [ "$1" == "--valgrind" ]; then + shift + valgrind --tool="memcheck" build/test/bench $private +elif [ "$1" == "--callgrind" ]; then + shift + valgrind --tool="callgrind" build/test/bench $private +else + build/test/bench $private +fi |
