summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSota Yamashita <sota.yamashita@gmail.com>2017-02-01 13:52:24 +0900
committerSam Roberts <vieuxtech@gmail.com>2017-02-13 13:51:21 -0800
commit5ffb7d72bb6d8c827b66a337c3318e3ac9b3055e (patch)
treeb60062e5dbafa36b8a377774bd62fef55ebf5388 /test
parentc6238e2761e9ba5c35aa4842c9be2ae937d28998 (diff)
downloadandroid-node-v8-5ffb7d72bb6d8c827b66a337c3318e3ac9b3055e.tar.gz
android-node-v8-5ffb7d72bb6d8c827b66a337c3318e3ac9b3055e.tar.bz2
android-node-v8-5ffb7d72bb6d8c827b66a337c3318e3ac9b3055e.zip
test: skip when openssl CLI doesn't exist
PR-URL: https://github.com/nodejs/node/pull/11095 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-tls-dhe.js6
-rw-r--r--test/parallel/test-tls-ecdh-disable.js6
-rw-r--r--test/parallel/test-tls-ecdh.js6
-rw-r--r--test/parallel/test-tls-securepair-server.js6
4 files changed, 24 insertions, 0 deletions
diff --git a/test/parallel/test-tls-dhe.js b/test/parallel/test-tls-dhe.js
index 1f3f73557a..d0c59ac074 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 6093aaae97..eec22c3cd3 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 2c68e3d706..ade8839a95 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 65a7d91a0c..76d2f88ac6 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;