mirror of
https://github.com/robertkrimen/otto
synced 2025-09-28 18:45:22 +08:00
parent
defac5b22e
commit
d4c606a2a0
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
/otto/otto
|
/otto/otto
|
||||||
|
/.test262/data
|
||||||
|
|
10
.test262/Makefile
Normal file
10
.test262/Makefile
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
.PHONY: build test data
|
||||||
|
|
||||||
|
test:
|
||||||
|
python ./data/tools/packaging/test262.py --command "./otto -underscore=false" --test=data --non_strict_only
|
||||||
|
|
||||||
|
build:
|
||||||
|
$(MAKE) -C .. otto
|
||||||
|
|
||||||
|
data:
|
||||||
|
hg clone -r 334 http://hg.ecmascript.org/tests/test262 data
|
18
.test262/README
Normal file
18
.test262/README
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
v8/test/test262/README:
|
||||||
|
---
|
||||||
|
This directory contains code for binding the test262 test suite
|
||||||
|
into the v8 test harness. To use the tests check out the test262
|
||||||
|
tests from
|
||||||
|
|
||||||
|
http://hg.ecmascript.org/tests/test262
|
||||||
|
|
||||||
|
at revision 334 as 'data' in this directory. Using later version
|
||||||
|
may be possible but the tests are only known to pass (and indeed run)
|
||||||
|
with that revision.
|
||||||
|
|
||||||
|
hg clone -r 334 http://hg.ecmascript.org/tests/test262 data
|
||||||
|
|
||||||
|
If you do update to a newer revision you may have to change the test
|
||||||
|
harness adapter code since it uses internal functionality from the
|
||||||
|
harness that comes bundled with the tests. You will most likely also
|
||||||
|
have to update the test expectation file.
|
1
.test262/otto
Symbolic link
1
.test262/otto
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../otto/otto
|
5
Makefile
5
Makefile
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: test assets todo fixme otto run test-all release test-synopsis test-i
|
.PHONY: test assets todo fixme otto run test-all release test-synopsis test-i test262
|
||||||
|
|
||||||
export TERST_BASE=$(PWD)
|
export TERST_BASE=$(PWD)
|
||||||
|
|
||||||
|
@ -53,3 +53,6 @@ release: test-all test-synopsis
|
||||||
test-synopsis: test-i
|
test-synopsis: test-i
|
||||||
cd .test && go test -v
|
cd .test && go test -v
|
||||||
cd .test && otto example.js
|
cd .test && otto example.js
|
||||||
|
|
||||||
|
test262:
|
||||||
|
$(MAKE) -C .test262 test
|
||||||
|
|
Loading…
Reference in New Issue
Block a user