summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-01-06 00:19:52 +0000
committerCarl Hetherington <cth@carlh.net>2019-01-06 00:19:52 +0000
commit4c9f24f422305dc69bd18b0bba6f76cccd1df21d (patch)
tree1ee0357c56e916a22c65402bcea4a8e687affe3e /run
parent4cb3f4a5cc5712f3a829f9a217f6554bbc875256 (diff)
Very simple dcpverify.
Diffstat (limited to 'run')
-rwxr-xr-xrun/tools/dcpverify15
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