Makefile 632 B

12345678910111213141516171819202122232425262728293031
  1. ALL_TESTS = $(shell find test/ -name '*.test.js')
  2. ALL_BENCH = $(shell find benchmarks -name '*.bench.js')
  3. run-tests:
  4. @./node_modules/.bin/expresso \
  5. -t 3000 \
  6. -I support \
  7. --serial \
  8. $(TESTFLAGS) \
  9. $(TESTS)
  10. test:
  11. @$(MAKE) NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests
  12. test-cov:
  13. @TESTFLAGS=--cov $(MAKE) test
  14. test-leaks:
  15. @ls test/leaks/* | xargs node --expose_debug_as=debug --expose_gc
  16. run-bench:
  17. @node $(PROFILEFLAGS) benchmarks/runner.js
  18. bench:
  19. @$(MAKE) BENCHMARKS="$(ALL_BENCH)" run-bench
  20. profile:
  21. @PROFILEFLAGS='--prof --trace-opt --trace-bailout --trace-deopt' $(MAKE) bench
  22. .PHONY: test bench profile