Skip to content

Commit 07976a8

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 5ec31c9 commit 07976a8

17 files changed

+68
-68
lines changed

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(fixtures.path('sea', 'asset-keys-empty'));
24+
const outputFile = buildSEA(fixtures.path('sea', 'asset-keys-empty'));
2525

2626
spawnSyncAndAssert(
2727
outputFile,

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(fixtures.path('sea', 'asset-keys'));
24+
const outputFile = buildSEA(fixtures.path('sea', 'asset-keys'));
2525

2626
spawnSyncAndAssert(
2727
outputFile,

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(fixtures.path('sea', 'assets-raw'));
20+
const outputFile = buildSEA(fixtures.path('sea', 'assets-raw'));
2121

2222
spawnSyncAndExitWithoutError(
2323
outputFile,

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(fixtures.path('sea', 'assets'));
20+
const outputFile = buildSEA(fixtures.path('sea', 'assets'));
2121

2222
spawnSyncAndAssert(
2323
outputFile,

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(fixtures.path('sea', 'disable-experimental-warning'));
22+
const outputFile = buildSEA(fixtures.path('sea', 'disable-experimental-warning'));
2323

2424
spawnSyncAndAssert(
2525
outputFile,

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

Lines 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) {

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(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(

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(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(

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(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(

test/sea/test-single-executable-application-exec-argv-extension-none.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 "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)