From f5f480c5750b76b662430b62ef85ebceea5aadc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 17 Aug 2015 16:52:46 +0200 Subject: Beginnings of modernizing the test suite Merging because I have to do other work but this is still a nice enough improvement. --- test/ranch_ct_hook.erl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/ranch_ct_hook.erl (limited to 'test/ranch_ct_hook.erl') 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 +%% +%% 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}. -- cgit v1.2.3