diff options
author | Darshan Sen <darshan.sen@postman.com> | 2021-10-16 12:16:48 +0300 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2021-10-30 11:46:02 +0300 |
commit | ff536fa13e70a3e6874d662774a7ae726a558776 (patch) | |
tree | 47c4513b7878177461fc4eb50f00051de6010300 /node.gyp | |
parent | babd73ce259b4c19f6889c0db82a4264d61307e5 (diff) |
test: test `crypto.setEngine()` using an actual engine
Signed-off-by: Darshan Sen <darshan.sen@postman.com>
PR-URL: https://github.com/nodejs/node/pull/40481
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -1473,5 +1473,31 @@ }, ] }], # end aix section + # TODO(RaisinTen): Enable this to build on other platforms as well. + ['(OS=="mac" or (OS=="linux" and target_arch=="x64")) and \ + node_use_openssl=="true"', { + 'targets': [ + { + 'target_name': 'test_crypto_engine', + 'type': 'shared_library', + 'include_dirs': ['deps/openssl/openssl/include'], + 'sources': ['test/fixtures/test_crypto_engine.c'], + 'conditions': [ + ['OS=="mac"', { + 'dependencies': ['deps/openssl/openssl.gyp:openssl'], + 'xcode_settings': { + 'OTHER_CFLAGS': ['-Wno-deprecated-declarations'], + }, + }], + ['OS=="linux" and target_arch=="x64"', { + 'cflags': [ + '-Wno-deprecated-declarations', + '-fPIC', + ], + }], + ], + }, # test_crypto_engine + ], # end targets + }], # end node_use_openssl section ], # end conditions block } |