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