2 # Copyright (C) 2001-2008, The Perl Foundation.
7 # this ugly piece of perl 5 code runs 'make spectest' and looks
8 # for passing test files that are not yet included in the
9 # 'spectest_regression' target. The output is an evil mess, but still useful.
11 my $test_file = $ARGV[0] || 't/spectest_regression.data';
13 open my $f, '<', $test_file
14 or die "Can't open file '$test_file' for reading: $!";
19 next if m/^\s*(?:#|$)/;
20 # ignore end-of-line comments
26 print "Running the test suite";
31 open my $t, 'make spectest 2>&1 |'
32 or die "Can't run make: $!";
35 # hack until the looping parse is fixed
36 unlink glob 't/spec/S29-conversions/ord_and_chr.*';
38 if (m{^t/spec/(.*?)\.+ok$}){
40 if (!$known_tests{$test}){
42 print "\n<< new: $test>>\n";
48 print "\nNewly passing tests:\n";
49 print "$_\n" for @new;
54 # cperl-indent-level: 4
57 # vim: expandtab shiftwidth=4: