Check for required executables before starting tests.
authorCarl Hetherington <cth@carlh.net>
Thu, 30 Apr 2015 16:52:32 +0000 (17:52 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 30 Apr 2015 16:52:32 +0000 (17:52 +0100)
run/tests

index 7083c6842b742f6b0c8252b877a1da67ec1918c2..1f73c2727828dbea17cdf80a89a7a87d75de5b22 100755 (executable)
--- 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