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