Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a run_test utility to run an individual test. Fix all tests so th…
…at the test suite actually runs (but several tests fail)
- Loading branch information
1 parent
878a834
commit b697c2c
Showing
8 changed files
with
84 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#! parrot-nqp | ||
|
||
INIT { | ||
pir::load_bytecode('./library/kakapo_full.pbc'); | ||
Nqp::compile_file('t/testlib/common.nqp'); | ||
pir::loadlib__ps("./dynext/pds_group"); | ||
} | ||
|
||
class MyProgram is Program { | ||
method main(*@args) { | ||
for @args { | ||
my $test := $_; | ||
my $sub := Nqp::compile_file("t/pmc/" ~ $test); | ||
$sub[0](); | ||
} | ||
} | ||
} | ||
|
||
INIT { | ||
Program::instance( | ||
MyProgram.new( :from_parrot ) | ||
); | ||
} | ||
|
||
Program::instance().run; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters