X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=test%2Fcommon.sh.in;h=0d7e858d842e49030f9941846dcb673f351e7be1;hb=f0bcd0b87a07dbe86db190f554a77fd89f4823d8;hp=7596a4850d7b40ce5563e4704e234f83a1dc4360;hpb=93a31f9b884f8e8f3f7a7d50cf90ffd365a14f7c;p=mmh diff --git a/test/common.sh.in b/test/common.sh.in index 7596a48..0d7e858 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -76,6 +76,14 @@ progress_done () printf "100%%\n" } +#### check() requires two arguments, each the name of a file to be +#### diff'ed. +#### If different, global variable "failed" is incremented. +check() { + #### POSIX diff should support -c. + diff -c "$1" "$2" || failed=`expr ${failed:-0} + 1` +} + setup_test () { export MH=${MH_TEST_DIR}/Mail/.mh_profile