4
%% Copyright Ericsson AB 2010. All Rights Reserved.
6
%% The contents of this file are subject to the Erlang Public License,
7
%% Version 1.1, (the "License"); you may not use this file except in
8
%% compliance with the License. You should have received a copy of the
9
%% Erlang Public License along with this software. If not, it can be
10
%% retrieved online at http://www.erlang.org/.
12
%% Software distributed under the License is distributed on an "AS IS"
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
%% the License for the specific language governing rights and limitations
20
-module(beam_1_SUITE).
22
%% Note: This directive should only be used in test suites.
25
-include_lib("common_test/include/ct.hrl").
27
%%--------------------------------------------------------------------
28
%% COMMON TEST CALLBACK FUNCTIONS
29
%%--------------------------------------------------------------------
31
%%--------------------------------------------------------------------
32
%% Function: suite() -> Info
35
%% List of key/value pairs.
37
%% Description: Returns list of tuples to set default properties
40
%% Note: The suite/0 function is only meant to be used to return
41
%% default data values, not perform any other operations.
42
%%--------------------------------------------------------------------
45
{timetrap,{seconds,10}}
48
%%--------------------------------------------------------------------
49
%% Function: init_per_suite(Config0) ->
50
%% Config1 | {skip,Reason} | {skip_and_save,Reason,Config1}
52
%% Config0 = Config1 = [tuple()]
53
%% A list of key/value pairs, holding the test case configuration.
55
%% The reason for skipping the suite.
57
%% Description: Initialization before the suite.
59
%% Note: This function is free to add any key/value pairs to the Config
60
%% variable, but should NOT alter/remove any existing entries.
61
%%--------------------------------------------------------------------
62
init_per_suite(Config) ->
65
%%--------------------------------------------------------------------
66
%% Function: end_per_suite(Config0) -> void() | {save_config,Config1}
68
%% Config0 = Config1 = [tuple()]
69
%% A list of key/value pairs, holding the test case configuration.
71
%% Description: Cleanup after the suite.
72
%%--------------------------------------------------------------------
73
end_per_suite(_Config) ->
76
%%--------------------------------------------------------------------
77
%% Function: init_per_testcase(TestCase, Config0) ->
78
%% Config1 | {skip,Reason} | {skip_and_save,Reason,Config1}
81
%% Name of the test case that is about to run.
82
%% Config0 = Config1 = [tuple()]
83
%% A list of key/value pairs, holding the test case configuration.
85
%% The reason for skipping the test case.
87
%% Description: Initialization before each test case.
89
%% Note: This function is free to add any key/value pairs to the Config
90
%% variable, but should NOT alter/remove any existing entries.
91
%%--------------------------------------------------------------------
92
init_per_testcase(_TestCase, Config) ->
95
%%--------------------------------------------------------------------
96
%% Function: end_per_testcase(TestCase, Config0) ->
97
%% void() | {save_config,Config1}
100
%% Name of the test case that is finished.
101
%% Config0 = Config1 = [tuple()]
102
%% A list of key/value pairs, holding the test case configuration.
104
%% Description: Cleanup after each test case.
105
%%--------------------------------------------------------------------
106
end_per_testcase(_TestCase, _Config) ->
109
%%--------------------------------------------------------------------
110
%% Function: all() -> TestCases | {skip,Reason}
112
%% TestCases = [TestCase | {sequence,SeqName}]
114
%% Name of a test case.
116
%% Name of a test case sequence.
118
%% The reason for skipping all test cases.
120
%% Description: Returns the list of test cases that are to be executed.
121
%%--------------------------------------------------------------------
125
%%--------------------------------------------------------------------
127
%%--------------------------------------------------------------------
130
ct:comment("tc1 executed"),