Add a test corpus for XML.
[libdcp.git] / run-tests.sh
index 8873a3e96bc1189fee5d39008902c74883dfaa06..c75c8c2ad97a0515468025d1881d4fd6d9e1bd43 100755 (executable)
@@ -18,4 +18,19 @@ if [ "$?" != "0" ]; then
   echo "FAIL: files differ"
   exit 1
 fi
-echo "PASS"
\ No newline at end of file
+
+if [ -e "../libdcp-test" ]; then
+  for d in `find ../libdcp-test -mindepth 1 -maxdepth 1 -type d`; do
+    LD_LIBRARY_PATH=build/src:build/asdcplib/src build/tools/dcpinfo $d
+    if [ "$?" != "0" ]; then
+      echo "FAIL: dcpinfo failed"
+      exit 1
+    fi
+  done
+else
+  echo "Test corpus not found"
+  exit 1
+fi
+
+echo "PASS"
+