X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Fcommon.sh.in;h=7c38d7d75977a8849249c8ec7b137fb96d7adbdb;hb=a5ef45bc5dffd1e05553f3bd65fc72877ae00a7c;hp=f0545e624958c7e3ba79b115452bd2d6a44c3c1d;hpb=c9dc470a7982250085c721e3f1436add8110ef63;p=mmh diff --git a/test/common.sh.in b/test/common.sh.in index f0545e6..7c38d7d 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -13,7 +13,8 @@ test -z "$auxexecdir" && auxexecdir="@libdir@" test -z "$bindir" && bindir="@bindir@" test -z "$mandir" && mandir="@mandir@" test -z "$sysconfdir" && sysconfdir="@sysconfdir@" -export MH_TEST_DIR auxexecdir bindir mandir sysconfdir +test -z "$pagerpath" && pagerpath="@pagerpath@" +export MH_TEST_DIR auxexecdir bindir mandir sysconfdir pagerpath test -z "$MH_INST_DIR" && MH_INST_DIR=${MH_TEST_DIR}/inst export MH_INST_DIR @@ -21,7 +22,11 @@ export MH_INST_DIR output_md5() { - @MD5SUM@ $* | @MD5FMT@ + #### Output just the checksum. If the filename needs to appear on + #### the same line, the caller needs to add it. This avoids + #### differences due to a leading '*' binary file indicator, for + #### text files, on some platforms (Cygwin). + @MD5SUM@ $* | @MD5FMT@ | cut -d ' ' -f 1 } test_skip () @@ -133,13 +138,14 @@ Path: ${MH_TEST_DIR}/Mail mhlproc: ${MH_LIB_DIR}/mhl showproc: ${MH_LIB_DIR}/mhl postproc: ${MH_LIB_DIR}/post +fileproc: ${MH_INST_DIR}${bindir}/refile EOF for f in MailAliases components digestcomps distcomps forwcomps mhl.body \ - mhl.digest mhl.format mhl.forward mhl.headers mhl.reply \ - mhn.defaults rcvdistcomps replcomps replgroupcomps scan.MMDDYY \ - scan.YYYYMMDD scan.default scan.mailx scan.nomime scan.size \ - scan.time scan.timely scan.unseen + mhl.digest mhl.format mhl.forward mhl.headers mhl.reply \ + mhn.defaults rcvdistcomps replcomps replgroupcomps scan.MMDDYY \ + scan.YYYYMMDD scan.default scan.mailx scan.nomime scan.size \ + scan.time scan.timely scan.unseen do cp ${MH_INST_DIR}${sysconfdir}/${f} ${MH_TEST_DIR}/Mail || exit 1 done