[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] new test-show tests broken

From: David Levine
Subject: Re: [Nmh-workers] new test-show tests broken
Date: Thu, 12 Feb 2015 09:20:38 -0500

Ken wrote:

> >[paul f:]
> >it all works very nicely, until show tries to invoke mhshow.  it
> >does so using nmhbindir(), which returns a hard-coded copy of the
> >configured install path.  if nmh has never been installed on the
> >machine where the test is being run (i.e., no "make install" has
> >happened), then show won't find /usr/local/bin/mhshow
> >(/usr/local/bin is the default install path), and the test-show
> >will fail.  or, if "make install" _has_ been done before for a
> >different version of nmh, the tests will run a newer local show
> >command along an older /usr/local/bin/mhshow, and the test may or
> >may not work.
> I ... kind of thought we had code to deal with this for other
> programs.  So there should be examples we can crib from.

The magic is in the profile used by the tests.  The patch below
fixes it for me, Paul.


diff --git a/test/common.sh.in b/test/common.sh.in
index dc7bc1d..b62de88 100644
--- a/test/common.sh.in
+++ b/test/common.sh.in
@@ -292,6 +292,7 @@ mhbuild: -nocontentid
 mhlproc: ${MH_LIBEXEC_DIR}/mhl
 moreproc: cat
 postproc: ${MH_LIBEXEC_DIR}/post
+showmimeproc: ${MH_INST_DIR}${bindir}/mhshow
 showproc: ${MH_LIBEXEC_DIR}/mhl
diff --git a/test/mhparam/test-mhparam b/test/mhparam/test-mhparam
index 8a48b8d..91551a7 100755
--- a/test/mhparam/test-mhparam
+++ b/test/mhparam/test-mhparam
@@ -91,7 +91,7 @@ cat
 nmh-`cat ${srcdir}/VERSION`

reply via email to

[Prev in Thread] Current Thread [Next in Thread]