From 7cbbfa7c7e0fba134838c5c9c58d2d3174232882 Mon Sep 17 00:00:00 2001
From: Linus Nordberg <linus@nordberg.se>
Date: Thu, 19 Feb 2015 16:17:01 +0100
Subject: Make unit tests work again.

Makefile target 'check' runs them.
---
 test/check.erl           | 11 +++++++++++
 test/config/check.config |  4 ++++
 2 files changed, 15 insertions(+)
 create mode 100755 test/check.erl
 create mode 100644 test/config/check.config

(limited to 'test')

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}]}]}].
-- 
cgit v1.1