Re: [Perlunit-devel] (no subject)
Status: Beta
Brought to you by:
mca1001
From: Adam S. <ad...@sp...> - 2001-11-15 15:40:00
|
Piers Cawley (pdc...@bo...) wrote: > Adam Spiers <ad...@sp...> writes: > >Piers Cawley (pdc...@bo...) wrote: > >> Well, it's sort of dependent on where you run the script from. > >> Actually I'm more inclined to stick the *modules* in t/tlib (I'll > >> explain why it has to be tlib in a minute) and then do > >> > >> use lib 't/tlib', 'tlib'; > >> > >> So that you can run the tests from either the project root or from > >> inside the t directory. It has to be tlib instead of lib to avoid > >> using the files in lib/* rather than blib/*. > > > > Yep, sounds good. It doesn't look like there's any hook in MakeMaker > > so we could persuade it to add these to @INC directly, hmph. Although > > doing it that way would break running the tests directly (isn't that > > deprecated however?) > > Dunno about deprecated, it can be damned useful. > > > I can do this right now if you want me to. > > Go to it. Done and committed. Tests all pass for me; hope I haven't broken anything. |