Skip to content

Commit

Permalink
Add the ability to run individual tests.
Browse files Browse the repository at this point in the history
    make t/specific.t

These tests are verbose, while 'make test' is terse.

Also added 't/' to PERL6LIB so TestML tests can find their Bridge classed there.
  • Loading branch information
ingydotnet committed Jul 12, 2010
1 parent 4126ad8 commit fed8133
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ufo
Expand Up @@ -127,15 +127,16 @@ sub MAIN($filename = 'Makefile', Bool :$alpha) {

my $makefile = $filename eq '-' ?? $*OUT !! open $filename, :w;
$makefile.say(qq[PERL6=$binary]);
$makefile.say(qq[PERL6LIB='$cwd/lib']);
$makefile.say(qq[PERL6LIB='$cwd/t:$cwd/lib']);
$makefile.say(q[]);

$makefile.say($sources);

$makefile.say(qq[
PIRS=\$(patsubst %.pm6,%.pir,\$(SOURCES:.pm=.pir))
TESTS=\$(shell find t -name '*.t')
.PHONY: test clean
.PHONY: test clean force
all: \$(PIRS)
Expand All @@ -149,7 +150,10 @@ clean:
\trm -f \$(PIRS)
test: all
\tenv PERL6LIB=\$(PERL6LIB) prove -e '\$(PERL6)' -r --nocolor t/]);
\tenv PERL6LIB=\$(PERL6LIB) prove -e '\$(PERL6)' -r --nocolor t/
\$(TESTS): force
\tenv PERL6LIB=\$(PERL6LIB) prove -v -e '\$(PERL6)' -r --nocolor \$@]);

sub write-install($extension?) {
my %dirs;
Expand Down

0 comments on commit fed8133

Please sign in to comment.