makefile test-all command now tests native & pure js
This commit is contained in:
parent
e03516a182
commit
4b722264b1
6
Makefile
6
Makefile
@ -6,16 +6,15 @@ host=localhost
|
|||||||
port=5432
|
port=5432
|
||||||
database=postgres
|
database=postgres
|
||||||
verbose=false
|
verbose=false
|
||||||
native=false
|
|
||||||
|
|
||||||
params := -u $(user) --password $(password) -p $(port) -d $(database) -h $(host) --verbose $(verbose) --native $(native)
|
params := -u $(user) --password $(password) -p $(port) -d $(database) -h $(host) --verbose $(verbose)
|
||||||
|
|
||||||
node-command := xargs -n 1 -I file node file $(params)
|
node-command := xargs -n 1 -I file node file $(params)
|
||||||
|
|
||||||
.PHONY : test test-connection test-integration bench test-native build
|
.PHONY : test test-connection test-integration bench test-native build
|
||||||
test: test-unit
|
test: test-unit
|
||||||
|
|
||||||
test-all: test-unit test-integration
|
test-all: test-unit test-integration test-native
|
||||||
|
|
||||||
bench:
|
bench:
|
||||||
@find benchmark -name "*-bench.js" | $(node-command)
|
@find benchmark -name "*-bench.js" | $(node-command)
|
||||||
@ -31,6 +30,7 @@ test-connection:
|
|||||||
|
|
||||||
test-native: build/default/binding.node
|
test-native: build/default/binding.node
|
||||||
@find test/native -name "*-tests.js" | $(node-command)
|
@find test/native -name "*-tests.js" | $(node-command)
|
||||||
|
@find test/integration -name "*-tests.js" | $(node-command) --native true
|
||||||
|
|
||||||
test-integration: test-connection
|
test-integration: test-connection
|
||||||
@find test/integration -name "*-tests.js" | $(node-command)
|
@find test/integration -name "*-tests.js" | $(node-command)
|
||||||
|
Loading…
Reference in New Issue
Block a user