Mercurial > hg > sonic-annotator
view tests/test-include.sh @ 60:400e09d69b8f
Add file: URI for file -- this is stripped out by the test script afterwards, I'm not sure how it got stripped from the source as well but obviously it's not parseable without it
author | Chris Cannam |
---|---|
date | Thu, 24 May 2012 11:35:54 +0100 |
parents | 1141bc562301 |
children | 2633976fbef5 |
line wrap: on
line source
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 }