Skip to content

Commit a20b6e6

Browse files
committed
test: migrate to --build-sea in existing SEA tests
Only leave a smoking test for the postject-based workflow in test-single-executable-application.js
1 parent 220b531 commit a20b6e6

18 files changed

+71
-71
lines changed

test/node-api/test_sea_addon/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// This tests that SEA can load addons packaged as assets by writing them to disk
33
// and loading them via process.dlopen().
44
const common = require('../../common');
5-
const { generateSEA, skipIfSingleExecutableIsNotSupported } = require('../../common/sea');
5+
const { buildSEA, skipIfBuildSEAIsNotSupported } = require('../../common/sea');
66

7-
skipIfSingleExecutableIsNotSupported();
7+
skipIfBuildSEAIsNotSupported();
88

99
const tmpdir = require('../../common/tmpdir');
1010
const { copyFileSync, rmSync, cpSync } = require('fs');
@@ -27,7 +27,7 @@ cpSync(fixtureDir, tmpdir.path, { recursive: true });
2727
copyFileSync(addonPath, copiedAddonPath);
2828

2929
// Generate the SEA using the working directory directly (skip copy).
30-
const outputFile = generateSEA(tmpdir.path, tmpdir.path);
30+
const outputFile = buildSEA(tmpdir.path, tmpdir.path);
3131

3232
// Remove the copied addon after it's been packaged into the SEA blob.
3333
rmSync(copiedAddonPath, { force: true });

test/sea/test-single-executable-application-asset-keys-empty.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
require('../common');
77

88
const {
9-
generateSEA,
10-
skipIfSingleExecutableIsNotSupported,
9+
buildSEA,
10+
skipIfBuildSEAIsNotSupported,
1111
} = require('../common/sea');
1212

13-
skipIfSingleExecutableIsNotSupported();
13+
skipIfBuildSEAIsNotSupported();
1414

1515
const tmpdir = require('../common/tmpdir');
1616

@@ -21,7 +21,7 @@ const fixtures = require('../common/fixtures');
2121

2222
tmpdir.refresh();
2323

24-
const outputFile = generateSEA(
24+
const outputFile = buildSEA(
2525
fixtures.path('sea', 'asset-keys-empty'),
2626
tmpdir.path,
2727
);

test/sea/test-single-executable-application-asset-keys.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
require('../common');
77

88
const {
9-
generateSEA,
10-
skipIfSingleExecutableIsNotSupported,
9+
buildSEA,
10+
skipIfBuildSEAIsNotSupported,
1111
} = require('../common/sea');
1212

13-
skipIfSingleExecutableIsNotSupported();
13+
skipIfBuildSEAIsNotSupported();
1414

1515
const tmpdir = require('../common/tmpdir');
1616

@@ -21,7 +21,7 @@ const fixtures = require('../common/fixtures');
2121

2222
tmpdir.refresh();
2323

24-
const outputFile = generateSEA(
24+
const outputFile = buildSEA(
2525
fixtures.path('sea', 'asset-keys'),
2626
tmpdir.path,
2727
);

test/sea/test-single-executable-application-assets-raw.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
require('../common');
44
const {
5-
generateSEA,
6-
skipIfSingleExecutableIsNotSupported,
5+
buildSEA,
6+
skipIfBuildSEAIsNotSupported,
77
} = require('../common/sea');
88

9-
skipIfSingleExecutableIsNotSupported();
9+
skipIfBuildSEAIsNotSupported();
1010

1111
// This tests the snapshot support in single executable applications.
1212
const tmpdir = require('../common/tmpdir');
@@ -17,7 +17,7 @@ const {
1717
const fixtures = require('../common/fixtures');
1818

1919
tmpdir.refresh();
20-
const outputFile = generateSEA(
20+
const outputFile = buildSEA(
2121
fixtures.path('sea', 'assets-raw'),
2222
tmpdir.path,
2323
);

test/sea/test-single-executable-application-assets.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
require('../common');
66
const {
7-
generateSEA,
8-
skipIfSingleExecutableIsNotSupported,
7+
buildSEA,
8+
skipIfBuildSEAIsNotSupported,
99
} = require('../common/sea');
1010

11-
skipIfSingleExecutableIsNotSupported();
11+
skipIfBuildSEAIsNotSupported();
1212

1313
const tmpdir = require('../common/tmpdir');
1414
const {
@@ -17,7 +17,7 @@ const {
1717
const fixtures = require('../common/fixtures');
1818

1919
tmpdir.refresh();
20-
const outputFile = generateSEA(
20+
const outputFile = buildSEA(
2121
fixtures.path('sea', 'assets'),
2222
tmpdir.path,
2323
);

test/sea/test-single-executable-application-disable-experimental-sea-warning.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
require('../common');
44

55
const {
6-
generateSEA,
7-
skipIfSingleExecutableIsNotSupported,
6+
buildSEA,
7+
skipIfBuildSEAIsNotSupported,
88
} = require('../common/sea');
99

10-
skipIfSingleExecutableIsNotSupported();
10+
skipIfBuildSEAIsNotSupported();
1111

1212
// This tests the creation of a single executable application which has the
1313
// experimental SEA warning disabled.
@@ -19,7 +19,7 @@ const fixtures = require('../common/fixtures');
1919

2020
tmpdir.refresh();
2121

22-
const outputFile = generateSEA(
22+
const outputFile = buildSEA(
2323
fixtures.path('sea', 'disable-experimental-warning'),
2424
tmpdir.path,
2525
);

test/sea/test-single-executable-application-empty.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
require('../common');
44
const {
5-
generateSEA,
6-
skipIfSingleExecutableIsNotSupported,
5+
buildSEA,
6+
skipIfBuildSEAIsNotSupported,
77
} = require('../common/sea');
88

9-
skipIfSingleExecutableIsNotSupported();
9+
skipIfBuildSEAIsNotSupported();
1010

1111
// This tests the creation of a single executable application with an empty
1212
// script.
@@ -17,7 +17,7 @@ const { spawnSyncAndExitWithoutError } = require('../common/child_process');
1717

1818
tmpdir.refresh();
1919

20-
const outputFile = generateSEA(
20+
const outputFile = buildSEA(
2121
fixtures.path('sea', 'empty'),
2222
tmpdir.path,
2323
'sea-config.json',

test/sea/test-single-executable-application-exec-argv-empty.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
require('../common');
44

55
const {
6-
generateSEA,
7-
skipIfSingleExecutableIsNotSupported,
6+
buildSEA,
7+
skipIfBuildSEAIsNotSupported,
88
} = require('../common/sea');
99

10-
skipIfSingleExecutableIsNotSupported();
10+
skipIfBuildSEAIsNotSupported();
1111

1212
// This tests the execArgv functionality with empty array in single executable applications.
1313

@@ -18,7 +18,7 @@ const fixtures = require('../common/fixtures');
1818

1919
tmpdir.refresh();
2020

21-
const outputFile = generateSEA(
21+
const outputFile = buildSEA(
2222
fixtures.path('sea', 'exec-argv-empty'),
2323
tmpdir.path,
2424
);

test/sea/test-single-executable-application-exec-argv-extension-cli.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
require('../common');
44

55
const {
6-
generateSEA,
7-
skipIfSingleExecutableIsNotSupported,
6+
buildSEA,
7+
skipIfBuildSEAIsNotSupported,
88
} = require('../common/sea');
99

10-
skipIfSingleExecutableIsNotSupported();
10+
skipIfBuildSEAIsNotSupported();
1111

1212
// This tests the execArgvExtension "cli" mode in single executable applications.
1313

@@ -18,7 +18,7 @@ const fixtures = require('../common/fixtures');
1818

1919
tmpdir.refresh();
2020

21-
const outputFile = generateSEA(
21+
const outputFile = buildSEA(
2222
fixtures.path('sea', 'exec-argv-extension-cli'),
2323
tmpdir.path,
2424
);

test/sea/test-single-executable-application-exec-argv-extension-env.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
require('../common');
44

55
const {
6-
generateSEA,
7-
skipIfSingleExecutableIsNotSupported,
6+
buildSEA,
7+
skipIfBuildSEAIsNotSupported,
88
} = require('../common/sea');
99

10-
skipIfSingleExecutableIsNotSupported();
10+
skipIfBuildSEAIsNotSupported();
1111

1212
// This tests the execArgvExtension "env" mode (default) in single executable applications.
1313

@@ -19,7 +19,7 @@ const fixtures = require('../common/fixtures');
1919

2020
tmpdir.refresh();
2121

22-
const outputFile = generateSEA(
22+
const outputFile = buildSEA(
2323
fixtures.path('sea', 'exec-argv-extension-env'),
2424
tmpdir.path,
2525
);

0 commit comments

Comments
 (0)