added 'bench' task to makefile

This commit is contained in:
brianc 2010-12-30 21:26:23 -06:00
parent c724ea276d
commit 62de2f4a02

View File

@ -11,11 +11,14 @@ params := -u $(user) --password $(password) -p $(port) -d $(database) -h $(host)
node-command := xargs -n 1 -I file node file $(params)
.PHONY : test test-connection test-integration
.PHONY : test test-connection test-integration bench
test: test-unit
test-all: test-unit test-integration
bench:
@find benchmark -name "*-bench.js" | $(node-command)
test-unit:
@find test/unit -name "*-tests.js" | $(node-command)