Browse Source

test: introduce a helper that checks if crypto is available

since this applies to tls and https (among other things), it'll be used
for those tests as well. if we decouple the build system to somehow support
crypto but not tls, we could refine this.

PR-URL: https://github.com/iojs/io.js/pull/1049
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
v1.8.0-commit
Johan Bergström 10 years ago
committed by Shigeki Ohtsu
parent
commit
3d5726c4ad
  1. 3
      test/common.js

3
test/common.js

@ -43,6 +43,9 @@ Object.defineProperty(exports, 'opensslCli', {get: function() {
return opensslCli;
}, enumerable: true });
Object.defineProperty(exports, 'hasCrypto', {get: function() {
return process.versions.openssl ? true : false;
}});
if (process.platform === 'win32') {
exports.PIPE = '\\\\.\\pipe\\libuv-test';

Loading…
Cancel
Save