Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:rakudo/rakudo
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Apr 7, 2009
2 parents fb553bd + f822294 commit 4abd893
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 8 deletions.
4 changes: 4 additions & 0 deletions README
Expand Up @@ -82,6 +82,10 @@ You can also use "make" to run an individual test from the command line:
Files=1, Tests=4, 1 wallclock secs ( 0.02 usr 0.00 sys + 0.57 cusr 0.06 csys = 0.65 CPU)
Result: PASS

If you want to run the tests in parallel, you need to install a
fairly recent version of the Perl 5 module L<Test::Harness> (3.16
works for sure).

=head2 Where to get help or answers to questions

There are several mailing lists, IRC channels, and wikis available
Expand Down
13 changes: 6 additions & 7 deletions build/Makefile.in
Expand Up @@ -179,7 +179,7 @@ perl6.pbc: perl6_s1.pbc src/gen_setting.pm
$(PARROT) $(PARROT_ARGS) -o perl6.pbc perl6.pir

# the Perl 6 stage-1 compiler
perl6_s1.pbc: $(PARROT) $(SOURCES) $(BUILTINS_PIR)
perl6_s1.pbc: makefilecheck $(PARROT) $(SOURCES) $(BUILTINS_PIR)
$(PERL) -e "" > src/gen_setting.pir
$(PARROT) $(PARROT_ARGS) -o perl6_s1.pbc perl6.pir

Expand All @@ -192,7 +192,7 @@ src/gen_actions.pir: $(PARROT) $(NQP) $(PCT) src/parser/actions.pm
$(PARROT) $(PARROT_ARGS) $(NQP) --output=src/gen_actions.pir \
--encoding=fixed_8 --target=pir src/parser/actions.pm

src/gen_builtins.pir: build/gen_builtins_pir.pl Makefile
src/gen_builtins.pir: makefilecheck build/gen_builtins_pir.pl
$(PERL) build/gen_builtins_pir.pl $(BUILTINS_PIR) > src/gen_builtins.pir

src/gen_metaop.pir: build/gen_metaop_pir.pl
Expand All @@ -201,10 +201,10 @@ src/gen_metaop.pir: build/gen_metaop_pir.pl
src/gen_junction.pir: build/gen_junction_pir.pl
$(PERL) build/gen_junction_pir.pl src/gen_junction.pir

src/gen_setting.pm: build/gen_setting_pm.pl $(SETTING)
src/gen_setting.pm: makefilecheck build/gen_setting_pm.pl $(SETTING)
$(PERL) build/gen_setting_pm.pl $(SETTING) > src/gen_setting.pm

$(PERL6_GROUP): $(PARROT) $(PMC_SOURCES)
$(PERL6_GROUP): makefilecheck $(PARROT) $(PMC_SOURCES)
cd $(PMC_DIR) && $(BUILD_DYNPMC) generate $(PMCS)
cd $(PMC_DIR) && $(BUILD_DYNPMC) compile $(PMCS)
cd $(PMC_DIR) && $(BUILD_DYNPMC) linklibs $(PMCS)
Expand Down Expand Up @@ -323,9 +323,8 @@ help:
@echo " help: Print this help message."
@echo ""

Makefile: build/Makefile.in
@echo "Makefile is out of date... try re-running Configure.pl"
@$(PERL) -e 'exit 1'
makefilecheck: Makefile
@$(PERL) -e 'die "Makefile is out of date... try re-running Configure.pl\n" if (-M "build/Makefile.in" < -M "Makefile");'

CRITIC_FILES=Configure.pl t/harness build/ tools/

Expand Down
4 changes: 4 additions & 0 deletions docs/ChangeLog
@@ -1,4 +1,8 @@
New in 2009-04 release
* enforce return types of subroutines (partial implementation)
* parallel testing
* Configure.pl now supports passing options to parrot's Configure
* support for lexical subroutines and multis
* implemented \c[character name] in double quoted strings and regexes
* implemented Perl 5 regexes
* rx/.../ regex quoting
Expand Down
1 change: 1 addition & 0 deletions docs/spectest-progress.csv
Expand Up @@ -319,3 +319,4 @@
"2009-04-04 00:00",68ea385,8406,0,342,1964,10712,15534,347
"2009-04-05 00:00",7dc65fd,8436,0,340,1960,10736,15579,349
"2009-04-06 00:00",078012a,8436,0,340,1960,10736,15579,349
"2009-04-07 00:00",8f4dc52,8436,0,340,1960,10736,15579,349
13 changes: 12 additions & 1 deletion t/harness
Expand Up @@ -23,6 +23,7 @@ GetOptions(
'jobs:3' => \my $jobs,
'icu:1' => \my $do_icu,
);

my @pass_through_options = grep m/^--?[^-]/, @ARGV;
my @files = grep m/^[^-]/, @ARGV;

Expand Down Expand Up @@ -54,7 +55,17 @@ if ($do_fudge) {
@tfiles = fudge(@tfiles);
}

runtests(@tfiles);
if (eval { require TAP::Harness; 1 }) {
my %harness_options = (
exec => ['./perl6'],
verbosity => 0+$Test::Harness::verbose,
jobs => $jobs || 1,
);
TAP::Harness->new( \%harness_options )->runtests(@tfiles);
}
else {
runtests(@tfiles);
}

# adapted to return only files ending in '.t'
sub all_in {
Expand Down

0 comments on commit 4abd893

Please sign in to comment.