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:
parent
fdc619c393
commit
fd7a49a778
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,4 +2,4 @@
|
|||
/.test262/data
|
||||
/.test262/test.v8
|
||||
/.test262/test.otto
|
||||
/.test262/.failing
|
||||
/.test262/.fail
|
||||
|
|
|
@ -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 $<
|
||||
|
||||
|
|
|
@ -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
5
.test262/shim.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
function $ERROR(message) {
|
||||
console.log(message)
|
||||
}
|
||||
|
||||
// ---
|
Loading…
Reference in New Issue
Block a user