Browse Source

Added performance_test target to run performance tests from command line.

David N. Welton 11 years ago
parent
commit
6c94bd8911
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Makefile

+ 5 - 1
Makefile

@@ -14,10 +14,14 @@ create_testdbs:
 test:
 	@$(REBAR) eunit
 
+performance_test: compile
+	erlc ./test/pgsql_perf_tests.erl
+	erl -noshell -pa ./ebin -eval "eunit:test(pgsql_perf_tests, [verbose])" -run init stop
+
 dialyzer: build.plt compile
 	dialyzer --plt $< ebin
 
 build.plt:
 	dialyzer -q --build_plt --apps erts kernel stdlib ssl --output_plt $@
 
-.PHONY: all compile release clean create_testdbs test dialyzer
+.PHONY: all compile release clean create_testdbs performance_test test dialyzer