diff options
author | Linus Nordberg <linus@nordberg.se> | 2015-02-19 16:17:01 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2015-02-19 16:17:01 +0100 |
commit | 7cbbfa7c7e0fba134838c5c9c58d2d3174232882 (patch) | |
tree | 69e88887845cda8c8a0f2791246abb2746693a3c /test | |
parent | f40d4a258f926614eb49492e1cc905f5f14f7509 (diff) |
Make unit tests work again.
Makefile target 'check' runs them.
Diffstat (limited to 'test')
-rwxr-xr-x | test/check.erl | 11 | ||||
-rw-r--r-- | test/config/check.config | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/check.erl b/test/check.erl new file mode 100755 index 0000000..b538346 --- /dev/null +++ b/test/check.erl @@ -0,0 +1,11 @@ +#! /usr/bin/env escript +%% -*- erlang -*- mode +%%! -pa ebin -pa ../lager/ebin -pa ../lager/deps/goldrush/ebin -pa ../mochiweb/ebin -config test/config/check.config + +%% To enable logging, pass `-s lager' by adding it to the line above. +%% Tweak the amount of logging by changing `lager_console_backend' in +%% config/check.config. + +main(_) -> + ok = x509:test(), + ok = catlfish:test(). diff --git a/test/config/check.config b/test/config/check.config new file mode 100644 index 0000000..fa84f34 --- /dev/null +++ b/test/config/check.config @@ -0,0 +1,4 @@ +%% -*- erlang -*- +[{lager, + [{handlers, + [{lager_console_backend, debug}]}]}]. |