Salve J Nilsen wrote:
Sendu Bala wrote:
 >
Can anyone suggest a solution that could be implemented in an M::B subclass to make --something visible in a test script when running the test action? I've tried looking through the M::B code but the command-line arg handling is just way too obfuscated for me to figure out where to 'patch into' the system, so to speak.

My might want to look at the get_options(), notes() and current() methods documented in Module::Build::API.

Specifically, how do those help me? I'm already using those to store --something if --something is supplied to Build.PL:

perl Build.PL --something

...

./Build test --test_files t/test.t

test.t knows about --something via notes().

I want to pass --something directly during test, however, to specify or negate what ever the current notes value may be.


Reply via email to