GeezerVison is showing github.com — test: relax version check with shared OpenSSL · nodejs/node@4e34f9a
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-process-versions.js +11-7Lines changed: 11 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -75,13 +75,17 @@ assert.match(process.versions.modules, /^\d+$/); |
75 | 75 | assert.match(process.versions.cjs_module_lexer, commonTemplate); |
76 | 76 |
|
77 | 77 | if (common.hasCrypto) { |
78 | | - const versionRegex = common.hasOpenSSL3 ? |
79 | | - // The following also matches a development version of OpenSSL 3.x which |
80 | | - // can be in the format '3.0.0-alpha4-dev'. This can be handy when building |
81 | | - // and linking against the main development branch of OpenSSL. |
82 | | - /^\d+\.\d+\.\d+(?:[-+][a-z0-9]+)*$/ : |
83 | | - /^\d+\.\d+\.\d+[a-z]?(\+quic)?(-fips)?$/; |
84 | | - assert.match(process.versions.openssl, versionRegex); |
| 78 | + if (process.config.variables.node_shared_openssl) { |
| 79 | + assert.ok(process.versions.openssl); |
| 80 | + } else { |
| 81 | + const versionRegex = common.hasOpenSSL3 ? |
| 82 | + // The following also matches a development version of OpenSSL 3.x which |
| 83 | + // can be in the format '3.0.0-alpha4-dev'. This can be handy when |
| 84 | + // building and linking against the main development branch of OpenSSL. |
| 85 | + /^\d+\.\d+\.\d+(?:[-+][a-z0-9]+)*$/ : |
| 86 | + /^\d+\.\d+\.\d+[a-z]?(\+quic)?(-fips)?$/; |
| 87 | + assert.match(process.versions.openssl, versionRegex); |
| 88 | + } |
85 | 89 | } |
86 | 90 |
|
87 | 91 | for (let i = 0; i < expected_keys.length; i++) { |
|