summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-02-19 16:17:01 +0100
committerLinus Nordberg <linus@nordberg.se>2015-02-19 16:17:01 +0100
commit7cbbfa7c7e0fba134838c5c9c58d2d3174232882 (patch)
tree69e88887845cda8c8a0f2791246abb2746693a3c /test
parentf40d4a258f926614eb49492e1cc905f5f14f7509 (diff)
Make unit tests work again.
Makefile target 'check' runs them.
Diffstat (limited to 'test')
-rwxr-xr-xtest/check.erl11
-rw-r--r--test/config/check.config4
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}]}]}].