comparison node_modules/socket.io/Makefile @ 76:0ae87af84e2f

added oscgroups
author Rob Canning <rob@foo.net>
date Sun, 13 Jul 2014 10:07:41 +0100
parents 333afcfd3f3a
children
comparison
equal deleted inserted replaced
75:3a2845e3156e 76:0ae87af84e2f
1 1
2 ALL_TESTS = $(shell find test/ -name '*.test.js') 2 REPORTER = dot
3 ALL_BENCH = $(shell find benchmarks -name '*.bench.js')
4
5 run-tests:
6 @./node_modules/.bin/expresso \
7 -t 3000 \
8 -I support \
9 --serial \
10 $(TESTFLAGS) \
11 $(TESTS)
12 3
13 test: 4 test:
14 @$(MAKE) NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests 5 @./node_modules/.bin/mocha \
6 --reporter $(REPORTER) \
7 --slow 200ms \
8 --bail
15 9
16 test-cov: 10 test-cov:
17 @TESTFLAGS=--cov $(MAKE) test 11 @./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \
12 --reporter $(REPORTER) \
13 test/
18 14
19 test-leaks: 15 .PHONY: test
20 @ls test/leaks/* | xargs node --expose_debug_as=debug --expose_gc
21
22 run-bench:
23 @node $(PROFILEFLAGS) benchmarks/runner.js
24
25 bench:
26 @$(MAKE) BENCHMARKS="$(ALL_BENCH)" run-bench
27
28 profile:
29 @PROFILEFLAGS='--prof --trace-opt --trace-bailout --trace-deopt' $(MAKE) bench
30
31 .PHONY: test bench profile