You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
786 B

  1. ALL_TESTS = $(shell find test/ -name '*.test.js')
  2. ALL_INTEGRATION = $(shell find test/ -name '*.integration.js')
  3. all:
  4. node-gyp configure build
  5. clean:
  6. node-gyp clean
  7. run-tests:
  8. @./node_modules/.bin/mocha \
  9. -t 2000 \
  10. -s 2400 \
  11. $(TESTFLAGS) \
  12. $(TESTS)
  13. run-integrationtests:
  14. @./node_modules/.bin/mocha \
  15. -t 5000 \
  16. -s 6000 \
  17. $(TESTFLAGS) \
  18. $(TESTS)
  19. test:
  20. @$(MAKE) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests
  21. integrationtest:
  22. @$(MAKE) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS="$(ALL_INTEGRATION)" run-integrationtests
  23. benchmark:
  24. @node bench/sender.benchmark.js
  25. @node bench/parser.benchmark.js
  26. autobahn:
  27. @NODE_PATH=lib node test/autobahn.js
  28. autobahn-server:
  29. @NODE_PATH=lib node test/autobahn-server.js
  30. .PHONY: test