nmh-workers
[Top][All Lists]
Advanced

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

[Nmh-workers] new test-show tests broken


From: Paul Fox
Subject: [Nmh-workers] new test-show tests broken
Date: Wed, 11 Feb 2015 23:55:18 -0500

it turns out that introducing test cases for the show command has
exposed a possible failing of the nmh test infrastructure.

the tests carefully construct a self-contained test environment, with
all the executables and test case data down under a ./test/testdir
subdirectory.  PATH is set to reference these executables.

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.

this explains why the buildbots are mostly failing right now, and
also, david, why your tests are failing.

my tests have all been working because i did an early install of
the show/mhshow tests, for dogfooding purposes.

lots of programs use nmhbindir().  i'm skeptical that none have ever
had test coverage, but that may be so.

i'll investigate further, but maybe this issue has come up before.

paul
=----------------------
 paul fox, address@hidden (arlington, ma, where it's 9.1 degrees)



reply via email to

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