Permalink
Browse files

Add a simple tool for building localtest.data files from spectest res…

…ults.
  • Loading branch information...
1 parent 9eed237 commit 491127ade29982c89da912125ad43dd052a7f0d2 @pmichaud pmichaud committed Jul 4, 2010
Showing with 23 additions and 0 deletions.
  1. +23 −0 tools/build-localtest.pl
View
23 tools/build-localtest.pl
@@ -0,0 +1,23 @@
+#! perl
+
+=head1 NAME
+
+build-localtest.pl - Create a t/localtest.data file from test output.
+
+=head1 SYNOPSIS
+
+perl tools/build-localtest.pl <test_output >t/localtest.data
+
+=head1 DESCRIPTION
+
+This almost doesn't deserve to be a script. It simply reads standard
+input looking for things of the form "t/spec/*/*.(t|rakudo)", then
+prints those to the standard output. Typically I simply run the
+script, then copy-and-paste the summary results of a test run into
+the window and capture the results to t/localtest.data .
+
+=cut
+
+while (<>) {
+ m!t/spec/(.*?)\.(t|rakudo)! && print "$1.t\n";
+}

0 comments on commit 491127a

Please sign in to comment.