From b9ee2e67bfc557dffa92b916166018bfc285e7c0 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Fri, 28 Aug 2026 18:08:36 +0200 Subject: [PATCH] test: use native builder for legacy SEA tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Migrate the remaining SEA tests away from postject. This routes ELF generation through --build-sea, which keeps PT_LOAD segments on separate pages for compatibility with RHEL 8 kernels. Assisted-by: Codex Signed-off-by: Filip Skokan PR-URL: https://github.com/nodejs/node/pull/65553 Refs: https://github.com/nodejs/build/issues/4433 Reviewed-By: James M Snell Reviewed-By: Gürgün Dayıoğlu Reviewed-By: Yagiz Nizipli Reviewed-By: Antoine du Hamel --- test/node-api/test_sea_addon/test.js | 6 +++--- test/sea/test-single-executable-application.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/node-api/test_sea_addon/test.js b/test/node-api/test_sea_addon/test.js index ef5fa118a0a..eeac7384945 100644 --- a/test/node-api/test_sea_addon/test.js +++ b/test/node-api/test_sea_addon/test.js @@ -2,9 +2,9 @@ // This tests that SEA can load addons packaged as assets by writing them to disk // and loading them via process.dlopen(). const common = require('../../common'); -const { generateSEA, skipIfSingleExecutableIsNotSupported } = require('../../common/sea'); +const { buildSEA, skipIfBuildSEAIsNotSupported } = require('../../common/sea'); -skipIfSingleExecutableIsNotSupported(); +skipIfBuildSEAIsNotSupported(); const tmpdir = require('../../common/tmpdir'); const { copyFileSync, rmSync, cpSync } = require('fs'); @@ -27,7 +27,7 @@ cpSync(fixtureDir, tmpdir.path, { recursive: true }); copyFileSync(addonPath, copiedAddonPath); // Generate the SEA using the working directory directly (skip copy). -const outputFile = generateSEA(tmpdir.path, tmpdir.path); +const outputFile = buildSEA(tmpdir.path); // Remove the copied addon after it's been packaged into the SEA blob. rmSync(copiedAddonPath, { force: true }); diff --git a/test/sea/test-single-executable-application.js b/test/sea/test-single-executable-application.js index f9f92958921..ae49156451a 100644 --- a/test/sea/test-single-executable-application.js +++ b/test/sea/test-single-executable-application.js @@ -3,11 +3,11 @@ require('../common'); const { - generateSEA, - skipIfSingleExecutableIsNotSupported, + buildSEA, + skipIfBuildSEAIsNotSupported, } = require('../common/sea'); -skipIfSingleExecutableIsNotSupported(); +skipIfBuildSEAIsNotSupported(); // This tests the creation of a single executable application. @@ -18,7 +18,7 @@ const fixtures = require('../common/fixtures'); tmpdir.refresh(); -const outputFile = generateSEA(fixtures.path('sea', 'simple')); +const outputFile = buildSEA(fixtures.path('sea', 'simple')); spawnSyncAndAssert( outputFile,