Skip to content

Commit

Permalink
Add a spectest skeleton (we can't actually run any files yet without …
Browse files Browse the repository at this point in the history
…extensive fudging for stuff like eval)
  • Loading branch information
sorear committed Jul 26, 2010
1 parent 3daf2eb commit e55a205
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ syml
.STD_checkout_stamp
STD_checkout
VERSION
t/spec
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,16 @@ Niecza/Grammar.pmc: Niecza/Grammar.pm6 .STD_build_stamp
.STD_build_stamp: .STD_checkout_stamp
cd STD_checkout && make && ./tryfile STD.pm6
touch .STD_build_stamp

.PHONY: t/spec
t/spec:
if [ ! -d t/spec ]; then \
svn checkout http://svn.pugscode.org/pugs/t/spec t/spec; \
else \
svn update t/spec; \
fi

t/*.t t/*/*.t t/*/*/*.t: all Test.dll t/spec
prove --exec t/fudgeandrun --verbosity=1 $@
spectest: testable t/spectest.data
prove --exec t/fudgeandrun - < t/spectest.data
8 changes: 8 additions & 0 deletions t/fudgeandrun
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /usr/bin/env perl
use strict;
use warnings;

my @OPTS = ('--keep-exit-code', 'niecza');

my $nt = `t/spec/fudge @OPTS $ARGV[0]`
system("./niecza_eval", $nt);

0 comments on commit e55a205

Please sign in to comment.