Skip to content

Commit

Permalink
Add stub for Test module
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Jan 27, 2011
1 parent 122f348 commit 74295e8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Original file line Diff line number Diff line change
@@ -1,10 +1,10 @@
all: lib/YAML/Tiny.pbc all: lib/YAML/Tiny.pbc


lib/YAML/Tiny.pbc: lib/YAML/Tiny.pir %.pbc: %.pir
parrot -o $@ $^ parrot -o $@ $^


lib/YAML/Tiny.pir: lib/YAML/Tiny.pm %.pir: %.pm
parrot-nqp --target=pir -o $@ $^ parrot-nqp --target=pir -o $@ $^


test: lib/YAML/Tiny.pbc test: lib/YAML/Tiny.pbc t/lib/Test.pbc
prove -e parrot-nqp -r -v t/*.t prove -e parrot-nqp -r -v t/*.t
13 changes: 13 additions & 0 deletions t/lib/Test.pm
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,13 @@
# There is no "export" in nqp. So avoid putting subs into Test namespace.
#module Test;

our sub yaml_ok($yaml, $expected, $description) {
ok(1, $description);
}

Q:PIR {
# We want Test::More features for testing. Not NQP's builtin.
.include "test_more.pir"
}

# vim: ft=perl6

0 comments on commit 74295e8

Please sign in to comment.