From fd7a49a7782983763d7c0102005c93acf2f9453a Mon Sep 17 00:00:00 2001 From: Robert Krimen Date: Thu, 18 Oct 2012 15:09:49 -0700 Subject: [PATCH] Add shim.js for better test262 testing --- .gitignore | 2 +- .test262/Makefile | 8 ++++---- .test262/gauntlet | 4 ++-- .test262/shim.js | 5 +++++ 4 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 .test262/shim.js diff --git a/.gitignore b/.gitignore index 15a1abc..f3b4ccc 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ /.test262/data /.test262/test.v8 /.test262/test.otto -/.test262/.failing +/.test262/.fail diff --git a/.test262/Makefile b/.test262/Makefile index b4b6dde..5f54dee 100644 --- a/.test262/Makefile +++ b/.test262/Makefile @@ -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 $< diff --git a/.test262/gauntlet b/.test262/gauntlet index 18b97e0..a7f5cc1 100755 --- a/.test262/gauntlet +++ b/.test262/gauntlet @@ -11,8 +11,8 @@ while () { 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 diff --git a/.test262/shim.js b/.test262/shim.js new file mode 100644 index 0000000..275e03e --- /dev/null +++ b/.test262/shim.js @@ -0,0 +1,5 @@ +function $ERROR(message) { + console.log(message) +} + +// ---