aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_to_openssh_SUITE.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-06-07 15:39:44 +0200
committerHans Nilsson <[email protected]>2016-06-09 09:47:08 +0200
commit8619d3d6cf22ad267a5d902be0ddc768280c92fc (patch)
tree4b87ee504f5c5a411d2712df71221371971d3b9f /lib/ssh/test/ssh_to_openssh_SUITE.erl
parent92457b67f824e569bba84eb62a5eec69140d81e4 (diff)
downloadotp-8619d3d6cf22ad267a5d902be0ddc768280c92fc.tar.gz
otp-8619d3d6cf22ad267a5d902be0ddc768280c92fc.tar.bz2
otp-8619d3d6cf22ad267a5d902be0ddc768280c92fc.zip
ssh: skip test suites if no crypto lib is installed
Diffstat (limited to 'lib/ssh/test/ssh_to_openssh_SUITE.erl')
-rw-r--r--lib/ssh/test/ssh_to_openssh_SUITE.erl15
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/ssh/test/ssh_to_openssh_SUITE.erl b/lib/ssh/test/ssh_to_openssh_SUITE.erl
index f96a2cc62b..a914938c41 100644
--- a/lib/ssh/test/ssh_to_openssh_SUITE.erl
+++ b/lib/ssh/test/ssh_to_openssh_SUITE.erl
@@ -22,6 +22,7 @@
-module(ssh_to_openssh_SUITE).
-include_lib("common_test/include/ct.hrl").
+-include("ssh_test_lib.hrl").
%% Note: This directive should only be used in test suites.
-compile(export_all).
@@ -62,12 +63,14 @@ groups() ->
].
init_per_suite(Config) ->
- case gen_tcp:connect("localhost", 22, []) of
- {error,econnrefused} ->
- {skip,"No openssh deamon"};
- _ ->
- ssh_test_lib:openssh_sanity_check(Config)
- end.
+ ?CHECK_CRYPTO(
+ case gen_tcp:connect("localhost", 22, []) of
+ {error,econnrefused} ->
+ {skip,"No openssh deamon"};
+ _ ->
+ ssh_test_lib:openssh_sanity_check(Config)
+ end
+ ).
end_per_suite(_Config) ->
ok.