aboutsummaryrefslogtreecommitdiffstats
path: root/test/ranch_ct_hook.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-08-17 16:52:46 +0200
committerLoïc Hoguin <[email protected]>2015-08-17 16:52:46 +0200
commitf5f480c5750b76b662430b62ef85ebceea5aadc6 (patch)
tree17cb06d0e11f571bc625707eeb6f83efe8028b5c /test/ranch_ct_hook.erl
parent5ea28fb44629eb217fee2a1e8fcd0bb47dde1034 (diff)
downloadranch-f5f480c5750b76b662430b62ef85ebceea5aadc6.tar.gz
ranch-f5f480c5750b76b662430b62ef85ebceea5aadc6.tar.bz2
ranch-f5f480c5750b76b662430b62ef85ebceea5aadc6.zip
Beginnings of modernizing the test suite
Merging because I have to do other work but this is still a nice enough improvement.
Diffstat (limited to 'test/ranch_ct_hook.erl')
-rw-r--r--test/ranch_ct_hook.erl23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/ranch_ct_hook.erl b/test/ranch_ct_hook.erl
new file mode 100644
index 0000000..051e5b2
--- /dev/null
+++ b/test/ranch_ct_hook.erl
@@ -0,0 +1,23 @@
+%% Copyright (c) 2015, Loïc Hoguin <[email protected]>
+%%
+%% Permission to use, copy, modify, and/or distribute this software for any
+%% purpose with or without fee is hereby granted, provided that the above
+%% copyright notice and this permission notice appear in all copies.
+%%
+%% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+%% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+%% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+%% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+%% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+-module(ranch_ct_hook).
+
+-export([init/2]).
+
+init(_, _) ->
+ ct_helper:start([ranch, ssl]),
+ ct_helper:make_certs_in_ets(),
+ error_logger:add_report_handler(ct_helper_error_h),
+ {ok, undefined}.