Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 75c06bc

Browse filesBrowse files
joyeecheungaduh95
authored andcommitted
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 PR-URL: #61167 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent b351910 commit 75c06bc
Copy full SHA for 75c06bc

17 files changed

+68-68Lines changed: 68 additions & 68 deletions
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-asset-keys-empty.js
+4-4Lines 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(fixtures.path('sea', 'asset-keys-empty'));
24+
const outputFile = buildSEA(fixtures.path('sea', 'asset-keys-empty'));
2525

2626
spawnSyncAndAssert(
2727
outputFile,
Collapse file

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

Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-asset-keys.js
+4-4Lines 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(fixtures.path('sea', 'asset-keys'));
24+
const outputFile = buildSEA(fixtures.path('sea', 'asset-keys'));
2525

2626
spawnSyncAndAssert(
2727
outputFile,
Collapse file

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

Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-assets-raw.js
+4-4Lines 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(fixtures.path('sea', 'assets-raw'));
20+
const outputFile = buildSEA(fixtures.path('sea', 'assets-raw'));
2121

2222
spawnSyncAndExitWithoutError(
2323
outputFile,
Collapse file

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

Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-assets.js
+4-4Lines 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(fixtures.path('sea', 'assets'));
20+
const outputFile = buildSEA(fixtures.path('sea', 'assets'));
2121

2222
spawnSyncAndAssert(
2323
outputFile,
Collapse file

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

Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-disable-experimental-sea-warning.js
+4-4Lines 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(fixtures.path('sea', 'disable-experimental-warning'));
22+
const outputFile = buildSEA(fixtures.path('sea', 'disable-experimental-warning'));
2323

2424
spawnSyncAndAssert(
2525
outputFile,
Collapse file

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

Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-empty.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
const common = 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 with an empty
1313
// script.
@@ -20,7 +20,7 @@ tmpdir.refresh();
2020

2121
let outputFile;
2222
try {
23-
outputFile = generateSEA(fixtures.path('sea', 'empty'), {
23+
outputFile = buildSEA(fixtures.path('sea', 'empty'), {
2424
verifyWorkflow: true,
2525
});
2626
} catch (e) {
Collapse file

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

Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-exec-argv-empty.js
+4-4Lines 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(fixtures.path('sea', 'exec-argv-empty'));
21+
const outputFile = buildSEA(fixtures.path('sea', 'exec-argv-empty'));
2222

2323
// Test that empty execArgv work correctly
2424
spawnSyncAndAssert(
Collapse file

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

Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-exec-argv-extension-cli.js
+4-4Lines 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(fixtures.path('sea', 'exec-argv-extension-cli'));
21+
const outputFile = buildSEA(fixtures.path('sea', 'exec-argv-extension-cli'));
2222

2323
// Test that --node-options works with execArgvExtension: "cli"
2424
spawnSyncAndAssert(
Collapse file

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

Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-exec-argv-extension-env.js
+4-4Lines 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(fixtures.path('sea', 'exec-argv-extension-env'));
22+
const outputFile = buildSEA(fixtures.path('sea', 'exec-argv-extension-env'));
2323

2424
// Test that NODE_OPTIONS works with execArgvExtension: "env" (default behavior)
2525
spawnSyncAndAssert(
Collapse file

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

Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-exec-argv-extension-none.js
+4-4Lines 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 "none" mode in single executable applications.
1313

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

1919
tmpdir.refresh();
2020

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

2323
// Test that NODE_OPTIONS is ignored with execArgvExtension: "none"
2424
spawnSyncAndAssert(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.