From 76bb9b64d0ad3ce688676d152de5228dc13f3c17 Mon Sep 17 00:00:00 2001 From: Allen Luce Date: Thu, 26 Apr 2018 14:33:52 -0700 Subject: [PATCH] Use a platform-specific dynamic object extension This should work everywhere except AIX. --- test/build.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/build.test.js b/test/build.test.js index efad5bb8..d848643d 100644 --- a/test/build.test.js +++ b/test/build.test.js @@ -12,6 +12,8 @@ var versioning = require('../lib/util/versioning.js'); var tar = require('tar'); var localVer = [versioning.get_runtime_abi('node'), process.platform, process.arch].join('-'); +var SOEXT = process.platform === 'darwin' ? 'dylib': 'so'; + // The list of different sample apps that we use to test var apps = [ { @@ -37,7 +39,7 @@ var apps = [ { 'name': 'app4', 'args': '', - 'files': [path.join(localVer, 'app4.node'), path.join(localVer, 'lib.target', 'mylib.dylib')] + 'files': [path.join(localVer, 'app4.node'), path.join(localVer, 'lib.target', 'mylib.' + SOEXT)] }, { 'name': 'app7',