summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-09-06 14:10:19 +0100
committerCarl Hetherington <cth@carlh.net>2012-09-06 14:10:19 +0100
commit8f6f5c5c8f09d8aa880c3f2f29530744576212a1 (patch)
tree9f726c3ec1e9e047b9672705d57b0a798584ef7e /run
parent50a7273c4d3cedd582856eeb22c07117b8b8572d (diff)
Add a test corpus for XML.
Diffstat (limited to 'run')
-rwxr-xr-xrun/tools/dcpinfo12
1 files changed, 12 insertions, 0 deletions
diff --git a/run/tools/dcpinfo b/run/tools/dcpinfo
new file mode 100755
index 00000000..54e3c659
--- /dev/null
+++ b/run/tools/dcpinfo
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+export LD_LIBRARY_PATH=build/src:build/asdcplib/src
+if [ "$1" == "--debug" ]; then
+ shift
+ gdb --args build/tools/dcpinfo "$@"
+elif [ "$1" == "--valgrind" ]; then
+ shift
+ valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/tools/dcpinfo "$@"
+else
+ build/tools/dcpinfo "$@"
+fi