1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-12 20:27:30 +08:00
otto/.test262/gauntlet
2012-10-20 12:55:29 -07:00

26 lines
449 B
Perl
Executable File

#!/usr/bin/env perl
use strict;
use warnings;
$| = 1;
my $passed = 0;
while (<STDIN>) {
chomp;
if (m/^=== (\S+)/) {
print "$passed passed\n---\n";
print "$_\n";
my $test = "data/test/suite/$1.js";
print "$test\n";
unlink ".fail";
symlink $test, ".fail";
exit 64;
} elsif (m/passed|as expected$/) {
$passed += 1;
print "$_\n";
}
}
print "$passed passed!\n";