Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: So much for Test::* :)

by almut (Canon)
on Oct 22, 2008 at 23:42 UTC ( [id://718902]=note: print w/replies, xml ) Need Help??


in reply to So much for Test::* :)

Just a guess... but maybe the shell is expected to expand the * wildcards?

Update: ...apparently not, as ExtUtils::Command::MM::test_harness() has

+ # Because Windows doesn't do this for us and listing all the *.t files # out on the command line can blow over its exec limit. require ExtUtils::Command; my @argv = ExtUtils::Command::expand_wildcards(@ARGV);

which is implemented as

my $wild_regex = $Is_VMS ? '*%' : '*?'; sub expand_wildcards { @ARGV = map(/[$wild_regex]/o ? glob($_) : $_,@ARGV); }

No idea why this apparently doesn't work for you.

Replies are listed 'Best First'.
Re^2: So much for Test::* :)
by BrowserUk (Patriarch) on Oct 23, 2008 at 00:24 UTC
    maybe the shell is expected to expand the * wildcards?

    Well yes. But isn't one of the primary reasons for Perl's existance, Mr.Wall's frustration with clunky shell syntax?

    And isn't the reason for having EU::MM et al. to take care of these kinds of platform differences?

    I should have been less terse. I was hoping for a clue as to how to go about fixing up the makefile.pl to get beyond the problem?

    If it helps, I've bypassed it for now by c&ping the command line issued and prefixing it:

    c:\Perl\packages\Test-Simple-0.84> C:\Perl\bin\perl.exe -e"BEGIN{@ARGV=map{glob}@ARGV}" ###### I added this ####### "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/*/*.t t/00test_harness_check..........ok t/bad_plan......................ok t/bail_out......................ok ... t/Tester/tbt_07args.............ok t/thread_taint..................ok t/threads.......................ok t/todo..........................ok t/undef.........................ok t/use_ok........................ok t/useing........................ok t/utf8..........................skipped all skipped: Not yet implemented All tests successful, 4 tests and 13 subtests skipped. Files=79, Tests=594, 7 wallclock secs ( 0.00 cusr + 0.00 csys = 0.0 +0 CPU)

    which works okay, but I'd prefer a more permanent solution.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^2: So much for Test::* :)
by ikegami (Patriarch) on Oct 23, 2008 at 04:07 UTC
    Is there any spaces in the path of the build dir?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://718902]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found