From 8619d3d6cf22ad267a5d902be0ddc768280c92fc Mon Sep 17 00:00:00 2001 From: Hans Nilsson Date: Tue, 7 Jun 2016 15:39:44 +0200 Subject: ssh: skip test suites if no crypto lib is installed --- lib/ssh/test/ssh_test_lib.hrl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/ssh/test/ssh_test_lib.hrl') diff --git a/lib/ssh/test/ssh_test_lib.hrl b/lib/ssh/test/ssh_test_lib.hrl index 7cb7edeaa8..54c93b7e87 100644 --- a/lib/ssh/test/ssh_test_lib.hrl +++ b/lib/ssh/test/ssh_test_lib.hrl @@ -1,3 +1,13 @@ +%%------------------------------------------------------------------------- +%% Check for usable crypt +%%------------------------------------------------------------------------- +-define(CHECK_CRYPTO(Available), + try crypto:start() + of _ -> Available + catch _:_ -> {skip, "Can't start crypto"} + end + ). + %%------------------------------------------------------------------------- %% Help macro %%------------------------------------------------------------------------- -- cgit v1.2.3