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

39 lines
1003 B

SHELL := /bin/bash
user=postgres
password=1234
host=localhost
port=5432
database=postgres
verbose=false
params := -u $(user) --password $(password) -p $(port) -d $(database) -h $(host) --verbose $(verbose)
14 years ago
node-command := xargs -n 1 -I file node file $(params)
14 years ago
.PHONY : test test-connection test-integration bench test-native
14 years ago
test: test-unit
test-all: test-unit test-integration test-native
bench:
@find benchmark -name "*-bench.js" | $(node-command)
build/default/binding.node: src/binding.cc
@node-waf configure build
14 years ago
test-unit:
@find test/unit -name "*-tests.js" | $(node-command)
test-connection:
@node script/test-connection.js $(params)
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 true
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)