arabica/tests/XSLT/xslt_test_and_check.sh

13 lines
199 B
Bash
Executable file

#!/bin/sh
./xslt_test -table > test-run.csv
MISMATCH=`diff test.csv test-run.csv | wc -l `
if [ 0 -eq $MISMATCH ]
then
exit 0
fi
echo "TEST OUTPUT HAS CHANGED"
diff test.csv test-run.csv
exit 1