4 # Runs our test suite, which builds a DCP.
5 # The output is compared against the one
6 # in test/ref/DCP, and an error is given
7 # if anything is different.
10 if [ "$1" == "--debug" ]; then
12 LD_LIBRARY_PATH=build/src:build/asdcplib/src gdb --args build/test/tests
14 LD_LIBRARY_PATH=build/src:build/asdcplib/src build/test/tests
16 diff -ur test/ref/DCP build/test/foo
17 if [ "$?" != "0" ]; then
18 echo "FAIL: files differ"
22 rm -f build/test/info.log
24 if [ -e "../libdcp-test" ]; then
25 for d in `find ../libdcp-test -mindepth 1 -maxdepth 1 -type d`; do
26 if [ `basename $d` != ".git" ]; then
27 LD_LIBRARY_PATH=build/src:build/asdcplib/src build/tools/dcpinfo -s $d >> build/test/info.log
28 if [ "$?" != "0" ]; then
29 echo "FAIL: dcpinfo failed for $d"
35 echo "Test corpus not found"
39 diff -q build/test/info.log ../libdcp-test/info.log
40 if [ "$?" != "0" ]; then
41 echo "FAIL: dcpinfo output incorrect"