Permalink
Browse files

add test for starting as OTP application

  • Loading branch information...
1 parent 0cbf00e commit fd65f3fcddcb1f10f68de897b1ce98a1c9e1f99c @wg committed Sep 26, 2010
Showing with 5 additions and 1 deletion.
  1. +1 −1 Makefile
  2. +4 −0 test_src/pgsql_tests.erl
View
@@ -29,7 +29,7 @@ clean:
@rm -f ebin/*.{beam,app}
@rm -rf $(NAME)-$(VERSION) $(NAME)-*.tar.gz
-test: $(TESTS:test_src/%.erl=test_ebin/%.beam) $(BEAMS)
+test: $(TESTS:test_src/%.erl=test_ebin/%.beam) compile
@dialyzer -n --src -c src
$(ERL) -pa ebin/ -pa test_ebin/ -noshell -s pgsql_tests run_tests -s init stop
@@ -525,6 +525,10 @@ listen_notify_payload_test() ->
end,
[{async, self()}]).
+application_test() ->
+ lists:foreach(fun application:start/1, [crypto, ssl]),
+ ok = application:start(epgsql).
+
%% -- run all tests --
run_tests() ->

0 comments on commit fd65f3f

Please sign in to comment.