# HG changeset patch # User Chris Cannam # Date 1255079601 0 # Node ID 1141bc5623011074f992ae964de50d3531d021ce # Parent f7a1b84c447c33b54eb1cbdd99d4ba0bd8d6691b * Add forgotten file! Oh no! diff -r f7a1b84c447c -r 1141bc562301 tests/test-include.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-include.sh Fri Oct 09 09:13:21 2009 +0000 @@ -0,0 +1,18 @@ + +fail() { + echo "Test failed: $1" + exit 1 +} + +csvcompare() { + # permit some fuzz in final few digits + a="$1" + b="$2" + perl -p -e 's/(\d+\.\d{6})\d+/$1/' "$a" > "${a}__" + perl -p -e 's/(\d+\.\d{6})\d+/$1/' "$b" > "${b}__" + cmp -s "${a}__" "${b}__" + rv=$? + rm "${a}__" "${b}__" + return $rv +} +