1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-19 19:55:30 +08:00
otto/.test262/Makefile
Robert Krimen 3c93384f5c Cleanup of stash, property, and object
Use octal to designate write/enumerate/configure (experimental)
Move extensibility responsibility into the stash
Rename propertyStash => objectStash (be congruent with arrayStash, etc.)
Get rid of a bunch of useless methods
Privatize everything ([A-Z] => [a-z_])
gofmt
2012-10-26 15:47:19 -07:00

51 lines
793 B
Makefile

.PHONY: build test otto v8 cull uncull gauntlet try test-v8 test-otto tmp
otto := ./otto -underscore=false
TEST := python ./data/tools/packaging/test262.py --test=data --non_strict_only
WITH_v8 := --command v8
WITH_otto := --command "$(otto)"
test:
$(TEST) $(WITH_otto)
release: otto gauntlet
test-otto: test
otto: build
build:
$(MAKE) -C .. otto
data:
hg clone -r 334 http://hg.ecmascript.org/tests/test262 data
v8 test-v8:
$(TEST) $(WITH_v8)
test.v8:
$(TEST) $(WITH_v8) > $@
cull: test.v8
./cull
uncull:
./uncull
gauntlet:
-$(TEST) $(WITH_otto) 2>/dev/null | ./gauntlet
@[ -f .fail ] && { cp .fail tmp; head .fail; }
try: .fail
head $<
cat shim.js $< | $(otto)
@echo PASS
try-tmp: tmp
cat shim.js $< | $(otto)
@echo PASS
look: .fail
cat $<
@echo `readlink $<`