aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test/ct_groups_test_2_SUITE_data/groups_1/repeat_1_SUITE.erl
blob: 7f6346bc80dfddeb0200a1ca7b927eb662e222ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2010-2016. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%%     http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%% %CopyrightEnd%
%%
-module(repeat_1_SUITE).

-compile(export_all).

-include_lib("common_test/include/ct.hrl").

%%====================================================================
%% COMMON TEST CALLBACK FUNCTIONS
%%====================================================================

suite() ->
    [{timetrap,{minutes,1}}].

groups() ->
    [
      {test_group_1, [{repeat,2}], [testcase_1a,testcase_1b]},
      {test_group_2, [{repeat,1}], [testcase_2a,testcase_2b]},

      {test_group_3, [{repeat_until_all_fail,1}],
       [testcase_3a,
	{test_group_4, [{repeat_until_any_fail,1}],
	 [testcase_4a, testcase_4b]},
	testcase_3b]}
     ].

all() ->
    [
     {group, test_group_1},
     {group, test_group_2},
     {group, test_group_3}
    ].

%%--------------------------------------------------------------------
%% Suite Configuration
%%--------------------------------------------------------------------

init_per_suite(Config) ->
    Config.

end_per_suite(Config) ->
    ok.

%%--------------------------------------------------------------------
%% Group Configuration
%%--------------------------------------------------------------------

init_per_group(Group, Config) ->
    Group = proplists:get_value(name,?config(tc_group_properties,Config)),
    ct:comment(Group),
    Config.

end_per_group(_Group, _Config) ->
    ok.

%%--------------------------------------------------------------------
%% Testcase Configuration
%%--------------------------------------------------------------------

init_per_testcase(_TestCase, Config) ->
    Config.

end_per_testcase(_TestCase, _Config) ->
    ok.

%%--------------------------------------------------------------------
%% Testcases
%%--------------------------------------------------------------------

testcase_1a(_) ->
    ok.
testcase_1b(_) ->
    ok.

testcase_2a(_) ->
    ok.
testcase_2b(_) ->
    ok.

testcase_3a(_) ->
    ok.
testcase_3b(_) ->
    ok.

testcase_4a(_) ->
    ok.
testcase_4b(_) ->
    ok.