From f55c43275a3e69ed34e98bc4e85c5371bbe81e69 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 --- 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 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 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;