Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Proper handling of shebang line while performing local testing?

by Anonymous Monk
on Sep 19, 2018 at 17:46 UTC ( #1222661=note: print w/replies, xml ) Need Help??


in reply to Proper handling of shebang line while performing local testing?

Run your tests using the correct Perl. The normal invocation is prove -lr t/, but if you're using Dist::Zilla you can just do dzil test. Your post implies that your tests are running your included shell script though, which indicates they are executing it wrong. Your tests must use $^X as the perl executable so they run using the Perl being installed to.

Replies are listed 'Best First'.
Re^2: Proper handling of shebang line while performing local testing?
by nysus (Parson) on Sep 20, 2018 at 17:21 UTC

    Thanks. I can't remember now but I think I was using dzil test and it still wasn't working (but this was before I had the `perl` command in there to try to get it to work on Windows). I will try with the $^X special variable. I didn't know that existed until now.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2022-05-19 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (71 votes). Check out past polls.

    Notices?