Check for required executables before starting tests.
[libdcp.git] / 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