Permalink
Browse files

Add a spectest skeleton (we can't actually run any files yet without …

…extensive fudging for stuff like eval)
  • Loading branch information...
1 parent 3daf2eb commit e55a205fa6b42c254870afa09fa622c4f75e3fde @sorear committed Jul 26, 2010
Showing with 22 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +13 −0 Makefile
  3. +8 −0 t/fudgeandrun
View
@@ -21,3 +21,4 @@ syml
.STD_checkout_stamp
STD_checkout
VERSION
+t/spec
View
@@ -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
View
@@ -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.