1
0
mirror of https://github.com/robertkrimen/otto synced 2025-09-28 18:45:22 +08:00

Add shim.js for better test262 testing

This commit is contained in:
Robert Krimen 2012-10-18 15:09:49 -07:00
parent fdc619c393
commit fd7a49a778
4 changed files with 12 additions and 7 deletions

2
.gitignore vendored
View File

@ -2,4 +2,4 @@
/.test262/data
/.test262/test.v8
/.test262/test.otto
/.test262/.failing
/.test262/.fail

View File

@ -30,12 +30,12 @@ uncull:
gauntlet:
-$(TEST) $(WITH_otto) 2>/dev/null | ./gauntlet
@[ -f .failing ] && head .failing
@[ -f .fail ] && head .fail
try: .failing
try: .fail
head $<
$(otto) $<
cat shim.js $< | $(otto)
look: .failing
look: .fail
cat $<

View File

@ -11,8 +11,8 @@ while (<STDIN>) {
print "$_\n";
my $test = "data/test/suite/$1.js";
print "$test\n";
unlink ".failing";
symlink $test, ".failing";
unlink ".fail";
symlink $test, ".fail";
exit 64;
} elsif (m/passed|as expected$/) {
$passed += 1

5
.test262/shim.js Normal file
View File

@ -0,0 +1,5 @@
function $ERROR(message) {
console.log(message)
}
// ---