Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Unable to release modulino to CPAN - still struggling

by davies (Prior)
on Oct 31, 2022 at 19:45 UTC ( [id://11147871]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Unable to release modulino to CPAN - still struggling
in thread Unable to release modulino to CPAN

Thanks; you may well be right. I had ignored that aspect. I'll try that out but will wait before uploading in the hope that I will be able to test on my machine before wasting the testers' time.

Regards,

John Davies

Replies are listed 'Best First'.
Re^4: Unable to release modulino to CPAN - still struggling
by pryrt (Abbot) on Oct 31, 2022 at 20:38 UTC
    The second [problem] is how to test any solution on my machine.
    and
    in the hope that I will be able to test on my machine

    So the situation you need to try to replicate is having a different perl earlier in the path. So on your machine, have a fake directory with an executable file called "perl" that just dies with FAKE PERL or similar. Then put the path to that fake perl earlier in your path than your normal perl. Then run your /path/to/real/prove -l t/ with the full perl path, and when the test suite tries to run the fake perl instead of $^X , it should obviously fail.

    edit: as hv pointed out here simultaneous to my post, that is exactly what this post was doing for you: it created a fake perl "executable" (bash script) in your t/ directory, then added that t/ directory to the start of your path; when you run your test suite in that condition, your test script (assuming it still runs perl BLAH rather than $^X BLAH ) would fail.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-03-28 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found