Skip to content

Commit

Permalink
test: add macos multi arch test (#113)
Browse files Browse the repository at this point in the history
Ref #112
  • Loading branch information
robertsLando authored Oct 23, 2024
1 parent 717b963 commit cd0095e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test-46-multi-arch/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const utils = require('../utils.js');
assert(!module.parent);
assert(__dirname === process.cwd());

// only linux has linux-arm64 counterpart
if (process.platform !== 'linux') return;
// only linux adn macos has arm64 counterpart
if (!['linux', 'darwin'].includes(process.platform)) return;

const opposite = { x64: 'arm64', arm: 'x64' };
const opposite = { x64: 'arm64', arm64: 'x64' };

const target = opposite[process.arch];
const input = './test-x-index.js';
Expand Down

0 comments on commit cd0095e

Please sign in to comment.