Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for loading perl6.pbc bytecode
Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
=head1 NAME | ||
|
||
t/02-embed/01-load.pir - Tests loading of bytecode | ||
|
||
=head1 SYNOPSIS | ||
|
||
% parrot t/02-embed/01-load.pir | ||
|
||
=head1 DESCRIPTION | ||
|
||
Tests the loading of perl6.pbc . This file is used by t/02-embed/01-load.t | ||
|
||
=cut | ||
|
||
.sub 'main' :main | ||
.include 'test_more.pir' | ||
|
||
plan(1) | ||
|
||
test_load() | ||
.end | ||
|
||
.sub test_load | ||
lives_ok(<<'CODE',"can load_bytecode perl6.pbc") | ||
.sub main | ||
load_bytecode "perl6.pbc" | ||
.end | ||
CODE | ||
.end |
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,3 @@ | ||
use v6; | ||
my $parrot = %*ENV{'PARROT'}; | ||
run("$parrot t/02-embed/01-load.pir"); |