From 1085a4675aeec9c5f3497911456ef3b8990e8f61 Mon Sep 17 00:00:00 2001 From: Sota Yamashita Date: Wed, 1 Feb 2017 13:52:24 +0900 Subject: [PATCH] test: skip when openssl CLI doesn't exist PR-URL: https://github.com/nodejs/node/pull/11095 Reviewed-By: James M Snell Reviewed-By: Yuta Hiroto Reviewed-By: Gibson Fahnestock Reviewed-By: Michael Dawson Reviewed-By: Anna Henningsen Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Sam Roberts --- test/parallel/test-tls-dhe.js | 6 ++++++ test/parallel/test-tls-ecdh-disable.js | 6 ++++++ test/parallel/test-tls-ecdh.js | 6 ++++++ test/parallel/test-tls-securepair-server.js | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/test/parallel/test-tls-dhe.js b/test/parallel/test-tls-dhe.js index 1f3f73557a6a2a..d0c59ac0746405 100644 --- a/test/parallel/test-tls-dhe.js +++ b/test/parallel/test-tls-dhe.js @@ -6,6 +6,12 @@ if (!common.hasCrypto) { common.skip('missing crypto'); return; } + +if (!common.opensslCli) { + common.skip('missing openssl-cli'); + return; +} + const tls = require('tls'); const spawn = require('child_process').spawn; diff --git a/test/parallel/test-tls-ecdh-disable.js b/test/parallel/test-tls-ecdh-disable.js index 6093aaae97146e..eec22c3cd34c8b 100644 --- a/test/parallel/test-tls-ecdh-disable.js +++ b/test/parallel/test-tls-ecdh-disable.js @@ -6,6 +6,12 @@ if (!common.hasCrypto) { common.skip('missing crypto'); return; } + +if (!common.opensslCli) { + common.skip('missing openssl-cli'); + return; +} + const tls = require('tls'); const exec = require('child_process').exec; diff --git a/test/parallel/test-tls-ecdh.js b/test/parallel/test-tls-ecdh.js index 2c68e3d706406e..ade8839a954424 100644 --- a/test/parallel/test-tls-ecdh.js +++ b/test/parallel/test-tls-ecdh.js @@ -5,6 +5,12 @@ if (!common.hasCrypto) { common.skip('missing crypto'); return; } + +if (!common.opensslCli) { + common.skip('missing openssl-cli'); + return; +} + const assert = require('assert'); const tls = require('tls'); diff --git a/test/parallel/test-tls-securepair-server.js b/test/parallel/test-tls-securepair-server.js index 65a7d91a0ca606..76d2f88ac6b8d4 100644 --- a/test/parallel/test-tls-securepair-server.js +++ b/test/parallel/test-tls-securepair-server.js @@ -6,6 +6,12 @@ if (!common.hasCrypto) { common.skip('missing crypto'); return; } + +if (!common.opensslCli) { + common.skip('missing openssl-cli'); + return; +} + const tls = require('tls'); const join = require('path').join;