Mercurial > hg > sonic-annotator
diff tests/test-include.sh @ 75:2633976fbef5 qt5
Tests (currently failing) for vamp-test-plugin
author | Chris Cannam |
---|---|
date | Tue, 30 Apr 2013 17:12:21 +0100 |
parents | 1141bc562301 |
children | 8b4924a9a072 |
line wrap: on
line diff
--- a/tests/test-include.sh Tue Apr 30 16:13:56 2013 +0100 +++ b/tests/test-include.sh Tue Apr 30 17:12:21 2013 +0100 @@ -16,3 +16,10 @@ return $rv } +csvcompare_ignorefirst() { + # a bit like the above, but ignoring first column (and without temp files) + out=`cat "$1" "$2" | cut -d, -f2- | perl -p -e 's/(\d+\.\d{6})\d+/$1/' | sort | uniq -c | grep -v ' 2 '` + return `[ -z "$out" ]` +} + +