mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
test: use native builder for legacy SEA tests
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 <panva.ip@gmail.com> PR-URL: https://github.com/nodejs/node/pull/65553 Refs: https://github.com/nodejs/build/issues/4433 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
d414624dce
commit
b9ee2e67bf
2 files changed
+7
-7
No files matched your search
@@ -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 });
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user