Mercurial > hg > m4-sa
view tests/test-include.sh @ 71:9600f5b8076f tip
latest version before copying fextractor
author | gyorgyf |
---|---|
date | Sun, 22 Sep 2013 21:55:40 +0200 |
parents | 1141bc562301 |
children |
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 }