4
%% Copyright Ericsson AB 2004-2011. 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
21
%%%----------------------------------------------------------------
22
%%% Purpose:ssh application test suite.
23
%%%-----------------------------------------------------------------
25
-include_lib("common_test/include/ct.hrl").
26
-include("test_server_line.hrl").
28
% Default timetrap timeout (set in init_per_testcase).
29
-define(default_timeout, ?t:minutes(1)).
30
-define(application, ssh).
32
% Test server specific exports
33
-export([all/0,groups/0,init_per_group/2,end_per_group/2]).
34
-export([init_per_testcase/2, end_per_testcase/2]).
36
% Test cases must be exported.
37
-export([app_test/1]).
38
-define(cases, [app_test]).
49
init_per_group(_GroupName, Config) ->
52
end_per_group(_GroupName, Config) ->
56
init_per_testcase(_Case, Config) ->
57
Dog=test_server:timetrap(?default_timeout),
58
[{watchdog, Dog}|Config].
59
end_per_testcase(_Case, Config) ->
60
Dog=?config(watchdog, Config),
61
test_server:timetrap_cancel(Dog),
64
% Test cases starts here.
69
["Application consistency test."];
70
app_test(Config) when is_list(Config) ->
71
?t:app_test(?application),