aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2010-12-15 15:45:55 +0100
committerNiclas Eklund <[email protected]>2011-05-19 14:38:12 +0200
commitca09b09dff13a70ff07c835c2ae951f3d7a2ac07 (patch)
tree3999c61f9a461829b101e4476ad48714eaea2008 /lib/ssh/test/ssh_SUITE.erl
parentd6e981e751b4565773204d7eb394ca445d63e771 (diff)
downloadotp-ca09b09dff13a70ff07c835c2ae951f3d7a2ac07.tar.gz
otp-ca09b09dff13a70ff07c835c2ae951f3d7a2ac07.tar.bz2
otp-ca09b09dff13a70ff07c835c2ae951f3d7a2ac07.zip
Convert ssh test cases to common test stardard
Diffstat (limited to 'lib/ssh/test/ssh_SUITE.erl')
-rw-r--r--lib/ssh/test/ssh_SUITE.erl24
1 files changed, 16 insertions, 8 deletions
diff --git a/lib/ssh/test/ssh_SUITE.erl b/lib/ssh/test/ssh_SUITE.erl
index dd4571febe..aa321527b8 100644
--- a/lib/ssh/test/ssh_SUITE.erl
+++ b/lib/ssh/test/ssh_SUITE.erl
@@ -22,7 +22,7 @@
%%% Purpose:ssh application test suite.
%%%-----------------------------------------------------------------
-module(ssh_SUITE).
--include("test_server.hrl").
+-include_lib("common_test/include/ct.hrl").
-include("test_server_line.hrl").
% Default timetrap timeout (set in init_per_testcase).
@@ -30,8 +30,8 @@
-define(application, ssh).
% Test server specific exports
--export([all/1]).
--export([init_per_testcase/2, fin_per_testcase/2]).
+-export([all/0,groups/0,init_per_group/2,end_per_group/2]).
+-export([init_per_testcase/2, end_per_testcase/2]).
% Test cases must be exported.
-export([app_test/1]).
@@ -40,15 +40,23 @@
%%
%% all/1
%%
-all(doc) ->
- [];
-all(suite) ->
- [?cases].
+all() ->
+ [app_test].
+
+groups() ->
+ [].
+
+init_per_group(_GroupName, Config) ->
+ Config.
+
+end_per_group(_GroupName, Config) ->
+ Config.
+
init_per_testcase(_Case, Config) ->
Dog=test_server:timetrap(?default_timeout),
[{watchdog, Dog}|Config].
-fin_per_testcase(_Case, Config) ->
+end_per_testcase(_Case, Config) ->
Dog=?config(watchdog, Config),
test_server:timetrap_cancel(Dog),
ok.