mirror of
https://github.com/robertkrimen/otto
synced 2025-10-26 20:28:49 +08:00
New parser
* Faster, more straightforward, etc. * More advanced object literals (get ..., set ...) * More tests using JavaScript from the wild (http://cdnjs.com/)
This commit is contained in:
26
test/Makefile
Normal file
26
test/Makefile
Normal file
@@ -0,0 +1,26 @@
|
||||
.PHONY: test fetch clean build err report
|
||||
|
||||
TESTER := tester
|
||||
|
||||
test: $(TESTER)
|
||||
for test in test-*.js; do ./$^ -test=true $$test 1>/dev/null || exit 1; done
|
||||
@echo PASS
|
||||
|
||||
report: $(TESTER)
|
||||
./$^ -report | grep -v "MT READY"
|
||||
|
||||
fetch: $(TESTER)
|
||||
./$^ fetch
|
||||
|
||||
build:
|
||||
go build -a -o $(TESTER)
|
||||
|
||||
$(TESTER): tester.go
|
||||
$(MAKE) build
|
||||
|
||||
clean:
|
||||
rm -f test-*.js
|
||||
rm -f $(TESTER)
|
||||
|
||||
err: $(TESTER)
|
||||
for test in test-*.js; do ./$^ $$test; done 2>$@
|
||||
Reference in New Issue
Block a user