summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-04-30 17:52:32 +0100
committerCarl Hetherington <cth@carlh.net>2015-04-30 17:52:32 +0100
commit8f3587b92cd06b6d84fcf566940fe57ca1094e7d (patch)
tree28134e80ae4fa0b4dd20d055afb98428611d8657
parent6a804ace532c13b2095972cd48d422e2c9fa0b70 (diff)
Check for required executables before starting tests.
-rwxr-xr-xrun/tests4
1 files changed, 4 insertions, 0 deletions
diff --git a/run/tests b/run/tests
index 7083c684..1f73c272 100755
--- a/run/tests
+++ b/run/tests
@@ -12,6 +12,10 @@ dcpinfo=build/tools/dcpinfo
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:build/src:build/asdcplib/src
+for c in xmlsec1 xmldiff; do
+ hash $c 2>/dev/null || { echo >&2 "$c required but not found; aborting"; exit 1; }
+done
+
# Run the unit tests in test/
if [ "$1" == "--debug" ]; then
shift