blob: 8873a3e96bc1189fee5d39008902c74883dfaa06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
#
# 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.
#
if [ "$1" == "--debug" ]; then
shift
LD_LIBRARY_PATH=build/src:build/asdcplib/src gdb --args build/test/tests
else
LD_LIBRARY_PATH=build/src:build/asdcplib/src build/test/tests
fi
diff -ur test/ref/DCP build/test/foo
if [ "$?" != "0" ]; then
echo "FAIL: files differ"
exit 1
fi
echo "PASS"
|