summaryrefslogtreecommitdiff
path: root/run-tests.sh
blob: 701b25d602f74b0e3c9513820df77bd3a6064796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

#
# 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 build/test/foo test/ref/DCP
if [ "$?" != "0" ]; then
  echo "FAIL: files differ"
  exit 1
fi
echo "PASS"