Skip to content

Commit eb9a455

Browse files
committed
Allow passing in file names on the command line.
1 parent 6c1c54e commit eb9a455

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

xt/examples-compilation.t

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@ chdir $?FILE.IO.dirname.IO.dirname;
88
my $p1 = shell "$*EXECUTABLE-NAME util/extract-examples.p6 --source-path=./doc/ --prefix=./examples/";
99
chdir 'examples';
1010

11-
my @files = find(dir => '.',
11+
my @files;
12+
13+
if @*ARGS {
14+
# don't pass examples/ as part of the path name
15+
@files = @*ARGS;
16+
} else {
17+
@files = find(dir => '.',
1218
name => /'Type'|'Language' .*? .p6$/,
1319
exclude => /'exceptions.p6'|'ArgFiles.p6'/,
1420
type => 'file');
21+
}
22+
1523
my $proc;
1624
plan +@files;
1725

0 commit comments

Comments
 (0)