diff options
author | Hans Nilsson <[email protected]> | 2016-06-07 15:39:44 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2016-06-09 09:47:08 +0200 |
commit | 8619d3d6cf22ad267a5d902be0ddc768280c92fc (patch) | |
tree | 4b87ee504f5c5a411d2712df71221371971d3b9f /lib/ssh/test/ssh_test_lib.hrl | |
parent | 92457b67f824e569bba84eb62a5eec69140d81e4 (diff) | |
download | otp-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_test_lib.hrl')
-rw-r--r-- | lib/ssh/test/ssh_test_lib.hrl | 10 |
1 files changed, 10 insertions, 0 deletions
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,4 +1,14 @@ %%------------------------------------------------------------------------- +%% Check for usable crypt +%%------------------------------------------------------------------------- +-define(CHECK_CRYPTO(Available), + try crypto:start() + of _ -> Available + catch _:_ -> {skip, "Can't start crypto"} + end + ). + +%%------------------------------------------------------------------------- %% Help macro %%------------------------------------------------------------------------- -define(wait_match(Pattern, FunctionCall, Bind, Timeout, Ntries), |