[Bioperl-l] Installing all modules required for testing
cjfields at uiuc.edu
Thu Jul 5 10:49:33 EDT 2007
On Jul 5, 2007, at 9:22 AM, Nathan S. Haigh wrote:
> Sendu Bala wrote:
>> Yes, add them as recommended (or perhaps 'build_requires') modules in
>> Build.PL, then run Build.PL and install the modules when it asks you.
>> Everything should be in Build.PL already. If I missed something,
>> add it.
> OK, to clarify using the test file Sendu mentioned in a previous post:
> This test skips tests if Algorithm::Diff, IO::ScalarArray or
> are not installed (the first two are not mentioned in Build.PL).
> However, if there are a lot of such skips in the whole test suite then
> there maybe few system with all these modules installed in order to
> conduct a complete test. These are the modules I'm referring to.
If they are only necessary for tests, work for all OSs, and are pure
Perl they should be added to t/lib, like Test::More and the rest. If
they only work for some OSs they could be added to t/lib and skip
based on OS, but they still must be pure Perl. I would avoid
anything that requires any compiling for XS or Inline altogether (I
don't want to go down the nightmare road of OS-dependent compiler
issues for a few tests).
Finally, if they are needed for core modules (not just tests) then
they should be added to the core prereqs in Build.
More information about the Bioperl-l