From ca09b09dff13a70ff07c835c2ae951f3d7a2ac07 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Wed, 15 Dec 2010 15:45:55 +0100 Subject: Convert ssh test cases to common test stardard --- lib/ssh/test/ssh_to_openssh_SUITE.erl | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'lib/ssh/test/ssh_to_openssh_SUITE.erl') diff --git a/lib/ssh/test/ssh_to_openssh_SUITE.erl b/lib/ssh/test/ssh_to_openssh_SUITE.erl index 1b7a9b23ed..12a350903a 100644 --- a/lib/ssh/test/ssh_to_openssh_SUITE.erl +++ b/lib/ssh/test/ssh_to_openssh_SUITE.erl @@ -20,7 +20,7 @@ %% -module(ssh_to_openssh_SUITE). --include("test_server.hrl"). +-include_lib("common_test/include/ct.hrl"). -include("test_server_line.hrl"). %% Note: This directive should only be used in test suites. @@ -90,13 +90,9 @@ end_per_testcase(_TestCase, _Config) -> %% Name of a test case. %% Description: Returns a list of all test cases in this test suite %%-------------------------------------------------------------------- -all(doc) -> - ["Test ssh API"]; - -all(suite) -> +all() -> case os:find_executable("ssh") of - false -> - {skip, "openSSH not installed on host"}; + false -> {skip, "openSSH not installed on host"}; _ -> [erlang_shell_client_openssh_server, erlang_client_openssh_server_exec, @@ -110,6 +106,16 @@ all(suite) -> erlang_client_openssh_server_password] end. +groups() -> + []. + +init_per_group(_GroupName, Config) -> + Config. + +end_per_group(_GroupName, Config) -> + Config. + + %% TEST cases starts here. %%-------------------------------------------------------------------- erlang_shell_client_openssh_server(doc) -> -- cgit v1.2.3