diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-06 00:19:52 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-06 00:19:52 +0000 |
| commit | 4c9f24f422305dc69bd18b0bba6f76cccd1df21d (patch) | |
| tree | 1ee0357c56e916a22c65402bcea4a8e687affe3e /run | |
| parent | 4cb3f4a5cc5712f3a829f9a217f6554bbc875256 (diff) | |
Very simple dcpverify.
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 |
