Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- perl your_file.t
- if [[ $? -gt 10 ]]; then
- echo "Wow, that's a lot of failures"
- elif [[ $? -gt 0 ]]; then
- echo "Tests failed"
- else
- echo "Success!"
- fi
- perl your_file.t || echo "Something bad happened."
- use IPC::System::Simple qw(systemx EXIT_ANY);
- my $exit_value = systemx( EXIT_ANY, 'mytest.t' );
- use IPC::System::Simple qw(systemx);
- systemx( 'mytest.t' ); # Run this command successfully or die.
Add Comment
Please, Sign In to add comment