You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
node-postgres/Makefile

41 lines
1.1 KiB

SHELL := /bin/bash
connectionString=pg://postgres:5432@localhost/postgres
params := $(connectionString)
14 years ago
node-command := xargs -n 1 -I file node file $(params)
.PHONY : test test-connection test-integration bench test-native build/default/binding.node
14 years ago
test: test-unit
test-all: test-unit test-integration test-native test-binary
bench:
@find benchmark -name "*-bench.js" | $(node-command)
build/default/binding.node:
@node-gyp rebuild
14 years ago
test-unit:
@find test/unit -name "*-tests.js" | $(node-command)
test-connection:
@node script/test-connection.js $(params)
test-connection-binary:
@node script/test-connection.js $(params) binary
test-native: build/default/binding.node
14 years ago
@echo "***Testing native bindings***"
@find test/native -name "*-tests.js" | $(node-command)
@find test/integration -name "*-tests.js" | $(node-command) native
14 years ago
test-integration: test-connection
14 years ago
@echo "***Testing Pure Javascript***"
14 years ago
@find test/integration -name "*-tests.js" | $(node-command)
test-binary: test-connection-binary
@echo "***Testing Pure Javascript (binary)***"
@find test/integration -name "*-tests.js" | $(node-command) binary