Browse Source

Disable TLS tests when node doesn't have OpenSSL.

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
7e831bfba1
  1. 6
      test/simple/test-tls-client-verify.js
  2. 5
      test/simple/test-tls-junk-closes-server.js
  3. 10
      test/simple/test-tls-securepair-client.js
  4. 6
      test/simple/test-tls-securepair-server.js
  5. 5
      test/simple/test-tls-server-verify.js

6
test/simple/test-tls-client-verify.js

@ -1,3 +1,9 @@
if (!process.versions.openssl) {
console.error("Skipping because node compiled without OpenSSL.");
process.exit(0);
}
var testCases =
[ { ca: ['ca1-cert'],
key: 'agent2-key',

5
test/simple/test-tls-junk-closes-server.js

@ -1,3 +1,8 @@
if (!process.versions.openssl) {
console.error("Skipping because node compiled without OpenSSL.");
process.exit(0);
}
var common = require('../common');
var tls = require('tls');
var fs = require('fs');

10
test/simple/test-tls-securepair-client.js

@ -1,3 +1,13 @@
// There is a bug with 'openssl s_server' which makes it not flush certain
// important events to stdout when done over a pipe. Therefore we skip this
// test for all openssl versions less than 1.0.0.
if (!process.versions.openssl ||
parseInt(process.versions.openssl.charCodeAt(0)) < 1) {
console.error("Skipping due to old OpenSSL version.");
process.exit(0);
}
var common = require('../common');
var join = require('path').join;
var net = require('net');

6
test/simple/test-tls-securepair-server.js

@ -1,3 +1,9 @@
if (!process.versions.openssl) {
console.error("Skipping because node compiled without OpenSSL.");
process.exit(0);
}
var common = require('../common');
var assert = require('assert');

5
test/simple/test-tls-server-verify.js

@ -1,3 +1,8 @@
if (!process.versions.openssl) {
console.error("Skipping because node compiled without OpenSSL.");
process.exit(0);
}
// This is a rather complex test which sets up various TLS servers with node
// and connects to them using the 'openssl s_client' command line utility
// with various keys. Depending on the certificate authority and other

Loading…
Cancel
Save