From 0695c09b77a566dda9833741d2f27f841a9a2319 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 Backport-PR-URL: https://github.com/nodejs/node/pull/12173 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 34f403ffed3254..eb2d1b52b136aa 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 a0555e87781f59..d309102368aaa4 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 99c6e108ab736a..56348d5d8e557e 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;