diff tests/test-include.sh @ 81:9f78c80c80f1

Merge from qt5 branch. We now require qt5 for Sonic Annotator
author Chris Cannam
date Wed, 08 May 2013 16:52:37 +0100
parents 2633976fbef5
children 8b4924a9a072
line wrap: on
line diff
--- a/tests/test-include.sh	Thu Mar 28 14:53:24 2013 +0000
+++ b/tests/test-include.sh	Wed May 08 16:52:37 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" ]`
+}
+
+