4
%% Copyright Ericsson AB 1997-2009. All Rights Reserved.
4
%% Copyright Ericsson AB 1997-2011. All Rights Reserved.
6
6
%% The contents of this file are subject to the Erlang Public License,
7
7
%% Version 1.1, (the "License"); you may not use this file except in
8
8
%% compliance with the License. You should have received a copy of the
9
9
%% Erlang Public License along with this software. If not, it can be
10
10
%% retrieved online at http://www.erlang.org/.
12
12
%% Software distributed under the License is distributed on an "AS IS"
13
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
14
%% the License for the specific language governing rights and limitations
15
15
%% under the License.
19
19
%%%----------------------------------------------------------------
20
20
%%% Kernel application test suite.
21
21
%%%-----------------------------------------------------------------
22
22
-module(kernel_SUITE).
23
-include("test_server.hrl").
23
-include_lib("test_server/include/test_server.hrl").
26
26
% Default timetrap timeout (set in init_per_testcase).
27
27
-define(default_timeout, ?t:minutes(1)).
29
29
% Test server specific exports
31
-export([init_per_testcase/2, fin_per_testcase/2]).
30
-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1,
31
init_per_group/2,end_per_group/2]).
32
-export([init_per_testcase/2, end_per_testcase/2]).
33
34
% Test cases must be exported.
34
35
-export([app_test/1]).
40
suite() -> [{ct_hooks,[ts_install_cth]}].
48
init_per_suite(Config) ->
51
end_per_suite(_Config) ->
54
init_per_group(_GroupName, Config) ->
57
end_per_group(_GroupName, Config) ->
44
61
init_per_testcase(_Case, Config) ->
45
62
?line Dog=test_server:timetrap(?default_timeout),
46
63
[{watchdog, Dog}|Config].
47
fin_per_testcase(_Case, Config) ->
64
end_per_testcase(_Case, Config) ->
48
65
Dog=?config(watchdog, Config),
49
66
test_server:timetrap_cancel(Dog),
56
73
["Tests the applications consistency."];
59
app_test(Config) when list(Config) ->
76
app_test(Config) when is_list(Config) ->
60
77
?line ok=?t:app_test(kernel),