in reply to MakeMaker nsFAQs

AFAIK the targets in the makefile are set, however there are lots of workarounds. You could just have a prompt in the Makefile.PL and copy the extra test so they match the t/*.t glob that finds the tests. Alternatively just append a testmore target to the physical Makefile after MakeMaker has written it. This will just be the test target with a slight path modification.

cheers

tachyon

Replies are listed 'Best First'.
Re^2: MakeMaker nsFAQs
by BigLug (Chaplain) on Aug 18, 2004 at 05:17 UTC
    Thanks tachyon, but I found a way:
    sub MY::postamble { return <<'MAKE_FRAG'; testmore :: pure_all PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "t +est_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" t/mor +e/*.t MAKE_FRAG }
    Creating a MY::postamble that returns a string will append that string to the Makefile. So, by copying the syntax for the existing test target, but altering the directory, I am able to add a new testmore target to the Makefile.

    I'm still working on interaction before installing though. One Idea I've just had is to create a t/zzz_post_make_config.t that would prompt the user after testing. Of course I'd have to be careful about output so as not to trigger as a failed test.

    Cheers!
    Rick
    If this is a root node: Before responding, please ensure your clue bit is set.
    If this is a reply: This is a discussion group, not a helpdesk ... If the discussion happens to answer a question you've asked, that's incidental.
      I hope you realize that is not portable
        I hope you realise that that's a crap reply. If it's not portable, take a second to point out where it's not portable. Do you mean in the path? If so, or if elsewhere, how should I fix it?
        If this is a root node: Before responding, please ensure your clue bit is set.
        If this is a reply: This is a discussion group, not a helpdesk ... If the discussion happens to answer a question you've asked, that's incidental.