updated makefile

This commit is contained in:
brianc 2011-03-05 11:31:59 -06:00
parent 4b722264b1
commit dc964a66c1

View File

@ -11,7 +11,7 @@ params := -u $(user) --password $(password) -p $(port) -d $(database) -h $(host)
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
test: test-unit test: test-unit
test-all: test-unit test-integration test-native test-all: test-unit test-integration test-native
@ -29,8 +29,10 @@ test-connection:
@node script/test-connection.js $(params) @node script/test-connection.js $(params)
test-native: build/default/binding.node test-native: build/default/binding.node
@echo "***Testing native bindings***"
@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 @find test/integration -name "*-tests.js" | $(node-command) --native true
test-integration: test-connection test-integration: test-connection
@echo "***Testing Pure Javascript***"
@find test/integration -name "*-tests.js" | $(node-command) @find test/integration -name "*-tests.js" | $(node-command)