From 3c51eb7248aa455c28805ff9710176c66eb1e266 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Wed, 23 Oct 2024 18:00:13 +0200 Subject: [PATCH] test: add macos multi arch test Ref #112 --- test/test-46-multi-arch/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test-46-multi-arch/main.js b/test/test-46-multi-arch/main.js index 194c2757..7c2927b2 100644 --- a/test/test-46-multi-arch/main.js +++ b/test/test-46-multi-arch/main.js @@ -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';