diff options
Diffstat (limited to 'run')
| -rwxr-xr-x | run/tools/dcpverify | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/run/tools/dcpverify b/run/tools/dcpverify new file mode 100755 index 00000000..382a6c67 --- /dev/null +++ b/run/tools/dcpverify @@ -0,0 +1,15 @@ +#!/bin/bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +top=$DIR/../.. + +export LD_LIBRARY_PATH=$top/build/src:build/asdcplib/src:$LD_LIBRARY_PATH +if [ "$1" == "--debug" ]; then + shift + gdb --args $top/build/tools/dcpverify "$@" +elif [ "$1" == "--valgrind" ]; then + shift + valgrind --tool="memcheck" --leak-check=full --show-reachable=yes $top/build/tools/dcpverify "$@" +else + $top/build/tools/dcpverify "$@" +fi |
