Re: [Module-build-general] Heirarchical building and testing
Status: Beta
Brought to you by:
kwilliams
|
From: Michael G S. <sc...@po...> - 2003-05-01 00:16:07
|
On Wed, Apr 30, 2003 at 11:14:47AM -0700, David Carmean wrote:
> With MakeMaker, after considerable pain I was able to figure out how
> to set up a heirarchy of subtrees in which I could work, build, and
> test a particular small set of packages as part of a larger system,
> and not only were the built components placed into the .../blib of the
> top-level, but a make/make test/make install performed at the top of
> any of the subtrees or the top level would recurse and "do the right thing".
>
> The main reason this was attractive was to organize the regression
> tests into small chunks for a kind of a lazy-man's Extreme Programming
> that is my current style. I'm working on an application which uses
> a bunch of modules, some of which I may break out into separate packages;
> I need to be able to test the development version of the app against the
> local copies of these modules without installing them and breaking the
> "installed" copy of the app/libs on the system. But I also don't need/want
> to wait for 100 regression tests to run until these five are passing.
>
> Has anybody else done this, either with MakeMaker or Module::Build?
I'm not entirely sure I understand the question... you want to run programs
off new copies of your modules without installing them to test the apps?
Some simple solutions come to mind:
Run the programs with the blib module to automatically put blib/lib and
blib/arch in @INC. This can be done without editing the programs by
setting the PERL5OPT environment variable to -Mblib
Set the PERL5LIB env manually to /path/to/your/src/blib/lib and blib/arch.
Install your modules into a holding directory using
perl Makefile.PL PREFIX=/holding/dir and set PERL5LIB to the resulting
lib directory.
The latter seems the best since it most closely emulates a real install in
case 'make install' does anything interesting.
--
Cottleston, Cottleston, Cottleston Pie.
A fly can't bird, but a bird can fly.
Ask me a riddle and I reply:
"Cottleston, Cottleston, Cottleston Pie."
|