Skip to content

Commit

Permalink
Add a test for raku -V
Browse files Browse the repository at this point in the history
Make sure it succeeds and returns config options. Don't do any deep
inspection of the configuration options. (Which would be a bad idea.)

Fixes #3875
  • Loading branch information
patrickbkr committed Aug 26, 2020
1 parent cc19d3d commit 97114a8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions t/02-rakudo/17-cli.t
@@ -0,0 +1,10 @@
use Test;

plan 3;

{
my $p := run $*EXECUTABLE, '-V', :out, :err;
is $p.exitcode, 0, '`raku -V` succeeds';
like $p.out.slurp(:close), / 'Raku::implementation=Rakudo' /, '`raku -V` prints configuration options';
is $p.err.slurp(:close).chars, 0, '`raku -V` doesn\'t print to STDERR';
}

0 comments on commit 97114a8

Please sign in to comment.