Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: prove: parallel multiple shells

by almr (Sexton)
on Aug 19, 2021 at 04:16 UTC ( [id://11135951]=note: print w/replies, xml ) Need Help??


in reply to Re^3: prove: parallel multiple shells
in thread prove: parallel multiple shells

I see. In that case I'm not sure how I could apply your setup to my problem (multiple .t files that should run with different shells)?

Replies are listed 'Best First'.
Re^5: prove: parallel multiple shells
by Corion (Patriarch) on Aug 19, 2021 at 05:39 UTC

    No - per prove-run, my approach would use the same shell for all runs. Maybe you can/want to use a shim in between your .t file and prove, that is something like:

    #!/bin/bash TESTSCRIPT=$1 for SHELL in ./test-shells/* ; do $SHELL $TESTSCRIPT if $? ; then exit $? fi done

    If you set this script as the interpreter of your test files, that should run each test with all shells (but still, single threaded). That way, you could at least achieve parallelism across your test files.

    I'm sure there is a bash-way of stopping the interpreter script when any subprocess fails. Maybe it's set -e or something, but I'm sure you know that far better than I do.

Log In?
Username:
Password:

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

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

    No recent polls found