diff options
Diffstat (limited to 'run/examples')
| -rwxr-xr-x | run/examples/read_dcp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/run/examples/read_dcp b/run/examples/read_dcp new file mode 100755 index 00000000..92f25b21 --- /dev/null +++ b/run/examples/read_dcp @@ -0,0 +1,12 @@ +#!/bin/bash + +export LD_LIBRARY_PATH=build/src +if [ "$1" == "--debug" ]; then + shift + gdb --args build/examples/read_dcp "$@" +elif [ "$1" == "--valgrind" ]; then + shift + valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/examples/read_dcp "$@" +else + build/examples/read_dcp "$@" +fi |
