X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/93a31f9b884f8e8f3f7a7d50cf90ffd365a14f7c..e107aac243dbd4021e57f4c455c7e3ffd82b819e:/test/common.sh.in?ds=sidebyside diff --git a/test/common.sh.in b/test/common.sh.in index 7596a485..0d7e858d 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