Skip to content

Commit

Permalink
Create export_helper.hrl
Browse files Browse the repository at this point in the history
  • Loading branch information
arcusfelis committed Dec 16, 2021
1 parent 11e2955 commit bc0c50b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
14 changes: 14 additions & 0 deletions big_tests/tests/export_helper.hrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
%% Exports cases automatically
%% Groups should be defined with _cases suffix
-compile({parse_transform, export_helper}).

%% This looks like to be present in every suite
-export([suite/0,
all/0,
groups/0,
init_per_suite/1,
end_per_suite/1,
init_per_group/2,
end_per_group/2,
init_per_testcase/2,
end_per_testcase/2]).
29 changes: 8 additions & 21 deletions big_tests/tests/sm_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,37 +1,22 @@
%% Session Management tests
-module(sm_SUITE).
-compile({parse_transform, export_helper}).

-export([suite/0,
all/0,
groups/0,
init_per_suite/1,
end_per_suite/1,
init_per_group/2,
end_per_group/2,
init_per_testcase/2,
end_per_testcase/2]).

%% Injected code callbacks
-export([rpc_start_hook_handler/3,
rpc_stop_hook_handler/2,
hook_handler_fn/3,
regression_handler/5]).

-include("export_helper.hrl").
-include_lib("exml/include/exml.hrl").
-include_lib("eunit/include/eunit.hrl").
-include_lib("escalus/include/escalus.hrl").
-include_lib("common_test/include/ct.hrl").

-define(MOD_SM, mod_stream_management).
-define(CONSTRAINT_CHECK_TIMEOUT, 5000).
%% Injected code callbacks
-export([rpc_start_hook_handler/3,
rpc_stop_hook_handler/2,
hook_handler_fn/3,
regression_handler/5]).

-import(distributed_helper, [mim/0,
require_rpc_nodes/1,
rpc/4]).

-import(escalus_stanza, [setattr/3]).

-import(domain_helper, [host_type/0]).

-import(sm_helper, [connect_fresh/3,
Expand All @@ -46,6 +31,8 @@
get_ack/1,
ack_initial_presence/1]).

-define(MOD_SM, mod_stream_management).
-define(CONSTRAINT_CHECK_TIMEOUT, 5000).
-define(LONG_TIMEOUT, 3600).
-define(SHORT_TIMEOUT, 3).
-define(SMALL_SM_BUFFER, 3).
Expand Down

0 comments on commit bc0c50b

Please sign in to comment.