Bitwise MXF comparison.
[libdcp.git] / run-tests.sh
index a44ccea09ea9dbc1b321719c3e02ba4f45986aa5..f9ef16f988a15d02e983512ea6e6bf2d97c743b5 100755 (executable)
@@ -1,6 +1,16 @@
 #!/bin/sh
 
-LD_LIBRARY_PATH=build/src:build/asdcplib/src
-build/test/tests
-#diff -ur build/test/foo test/ref/DCP
\ No newline at end of file
+#
+# Runs our test suite, which builds a DCP.
+# The output is compared against the one
+# in test/ref/DCP, and an error is given
+# if anything is different.
+#
+
+LD_LIBRARY_PATH=build/src:build/asdcplib/src build/test/tests
+diff -ur test/ref/DCP build/test/foo
+if [ "$?" != "0" ]; then
+  echo "FAIL: files differ"
+  exit 1
+fi
+echo "PASS"
\ No newline at end of file