GeezerVison is showing github.com — test: migrate to --build-sea in existing SEA tests · nodejs/node@75c06bc
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file 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 number | Diff line number | Diff line change |
|---|
| 6 | 6 | require('../common'); | 7 | 7 |
| 8 | 8 | const { | 9 | | - generateSEA, | 10 | | - skipIfSingleExecutableIsNotSupported, | | 9 | + buildSEA, | | 10 | + skipIfBuildSEAIsNotSupported, | 11 | 11 | } = require('../common/sea'); | 12 | 12 |
| 13 | | -skipIfSingleExecutableIsNotSupported(); | | 13 | +skipIfBuildSEAIsNotSupported(); | 14 | 14 |
| 15 | 15 | const tmpdir = require('../common/tmpdir'); | 16 | 16 |
| @@ -21,7 +21,7 @@ const fixtures = require('../common/fixtures'); | 21 | 21 |
| 22 | 22 | tmpdir.refresh(); | 23 | 23 |
| 24 | | -const outputFile = generateSEA(fixtures.path('sea', 'asset-keys-empty')); | | 24 | +const outputFile = buildSEA(fixtures.path('sea', 'asset-keys-empty')); | 25 | 25 |
| 26 | 26 | spawnSyncAndAssert( | 27 | 27 | outputFile, | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 6 | 6 | require('../common'); | 7 | 7 |
| 8 | 8 | const { | 9 | | - generateSEA, | 10 | | - skipIfSingleExecutableIsNotSupported, | | 9 | + buildSEA, | | 10 | + skipIfBuildSEAIsNotSupported, | 11 | 11 | } = require('../common/sea'); | 12 | 12 |
| 13 | | -skipIfSingleExecutableIsNotSupported(); | | 13 | +skipIfBuildSEAIsNotSupported(); | 14 | 14 |
| 15 | 15 | const tmpdir = require('../common/tmpdir'); | 16 | 16 |
| @@ -21,7 +21,7 @@ const fixtures = require('../common/fixtures'); | 21 | 21 |
| 22 | 22 | tmpdir.refresh(); | 23 | 23 |
| 24 | | -const outputFile = generateSEA(fixtures.path('sea', 'asset-keys')); | | 24 | +const outputFile = buildSEA(fixtures.path('sea', 'asset-keys')); | 25 | 25 |
| 26 | 26 | spawnSyncAndAssert( | 27 | 27 | outputFile, | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 2 | 2 |
| 3 | 3 | require('../common'); | 4 | 4 | const { | 5 | | - generateSEA, | 6 | | - skipIfSingleExecutableIsNotSupported, | | 5 | + buildSEA, | | 6 | + skipIfBuildSEAIsNotSupported, | 7 | 7 | } = require('../common/sea'); | 8 | 8 |
| 9 | | -skipIfSingleExecutableIsNotSupported(); | | 9 | +skipIfBuildSEAIsNotSupported(); | 10 | 10 |
| 11 | 11 | // This tests the snapshot support in single executable applications. | 12 | 12 | const tmpdir = require('../common/tmpdir'); | @@ -17,7 +17,7 @@ const { | 17 | 17 | const fixtures = require('../common/fixtures'); | 18 | 18 |
| 19 | 19 | tmpdir.refresh(); | 20 | | -const outputFile = generateSEA(fixtures.path('sea', 'assets-raw')); | | 20 | +const outputFile = buildSEA(fixtures.path('sea', 'assets-raw')); | 21 | 21 |
| 22 | 22 | spawnSyncAndExitWithoutError( | 23 | 23 | outputFile, | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 4 | 4 |
| 5 | 5 | require('../common'); | 6 | 6 | const { | 7 | | - generateSEA, | 8 | | - skipIfSingleExecutableIsNotSupported, | | 7 | + buildSEA, | | 8 | + skipIfBuildSEAIsNotSupported, | 9 | 9 | } = require('../common/sea'); | 10 | 10 |
| 11 | | -skipIfSingleExecutableIsNotSupported(); | | 11 | +skipIfBuildSEAIsNotSupported(); | 12 | 12 |
| 13 | 13 | const tmpdir = require('../common/tmpdir'); | 14 | 14 | const { | @@ -17,7 +17,7 @@ const { | 17 | 17 | const fixtures = require('../common/fixtures'); | 18 | 18 |
| 19 | 19 | tmpdir.refresh(); | 20 | | -const outputFile = generateSEA(fixtures.path('sea', 'assets')); | | 20 | +const outputFile = buildSEA(fixtures.path('sea', 'assets')); | 21 | 21 |
| 22 | 22 | spawnSyncAndAssert( | 23 | 23 | outputFile, | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 3 | 3 | require('../common'); | 4 | 4 |
| 5 | 5 | const { | 6 | | - generateSEA, | 7 | | - skipIfSingleExecutableIsNotSupported, | | 6 | + buildSEA, | | 7 | + skipIfBuildSEAIsNotSupported, | 8 | 8 | } = require('../common/sea'); | 9 | 9 |
| 10 | | -skipIfSingleExecutableIsNotSupported(); | | 10 | +skipIfBuildSEAIsNotSupported(); | 11 | 11 |
| 12 | 12 | // This tests the creation of a single executable application which has the | 13 | 13 | // experimental SEA warning disabled. | @@ -19,7 +19,7 @@ const fixtures = require('../common/fixtures'); | 19 | 19 |
| 20 | 20 | tmpdir.refresh(); | 21 | 21 |
| 22 | | -const outputFile = generateSEA(fixtures.path('sea', 'disable-experimental-warning')); | | 22 | +const outputFile = buildSEA(fixtures.path('sea', 'disable-experimental-warning')); | 23 | 23 |
| 24 | 24 | spawnSyncAndAssert( | 25 | 25 | outputFile, | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 3 | 3 | const common = require('../common'); | 4 | 4 |
| 5 | 5 | const { | 6 | | - generateSEA, | 7 | | - skipIfSingleExecutableIsNotSupported, | | 6 | + buildSEA, | | 7 | + skipIfBuildSEAIsNotSupported, | 8 | 8 | } = require('../common/sea'); | 9 | 9 |
| 10 | | -skipIfSingleExecutableIsNotSupported(); | | 10 | +skipIfBuildSEAIsNotSupported(); | 11 | 11 |
| 12 | 12 | // This tests the creation of a single executable application with an empty | 13 | 13 | // script. | @@ -20,7 +20,7 @@ tmpdir.refresh(); | 20 | 20 |
| 21 | 21 | let outputFile; | 22 | 22 | try { | 23 | | - outputFile = generateSEA(fixtures.path('sea', 'empty'), { | | 23 | + outputFile = buildSEA(fixtures.path('sea', 'empty'), { | 24 | 24 | verifyWorkflow: true, | 25 | 25 | }); | 26 | 26 | } catch (e) { | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 3 | 3 | require('../common'); | 4 | 4 |
| 5 | 5 | const { | 6 | | - generateSEA, | 7 | | - skipIfSingleExecutableIsNotSupported, | | 6 | + buildSEA, | | 7 | + skipIfBuildSEAIsNotSupported, | 8 | 8 | } = require('../common/sea'); | 9 | 9 |
| 10 | | -skipIfSingleExecutableIsNotSupported(); | | 10 | +skipIfBuildSEAIsNotSupported(); | 11 | 11 |
| 12 | 12 | // This tests the execArgv functionality with empty array in single executable applications. | 13 | 13 |
| @@ -18,7 +18,7 @@ const fixtures = require('../common/fixtures'); | 18 | 18 |
| 19 | 19 | tmpdir.refresh(); | 20 | 20 |
| 21 | | -const outputFile = generateSEA(fixtures.path('sea', 'exec-argv-empty')); | | 21 | +const outputFile = buildSEA(fixtures.path('sea', 'exec-argv-empty')); | 22 | 22 |
| 23 | 23 | // Test that empty execArgv work correctly | 24 | 24 | spawnSyncAndAssert( | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 3 | 3 | require('../common'); | 4 | 4 |
| 5 | 5 | const { | 6 | | - generateSEA, | 7 | | - skipIfSingleExecutableIsNotSupported, | | 6 | + buildSEA, | | 7 | + skipIfBuildSEAIsNotSupported, | 8 | 8 | } = require('../common/sea'); | 9 | 9 |
| 10 | | -skipIfSingleExecutableIsNotSupported(); | | 10 | +skipIfBuildSEAIsNotSupported(); | 11 | 11 |
| 12 | 12 | // This tests the execArgvExtension "cli" mode in single executable applications. | 13 | 13 |
| @@ -18,7 +18,7 @@ const fixtures = require('../common/fixtures'); | 18 | 18 |
| 19 | 19 | tmpdir.refresh(); | 20 | 20 |
| 21 | | -const outputFile = generateSEA(fixtures.path('sea', 'exec-argv-extension-cli')); | | 21 | +const outputFile = buildSEA(fixtures.path('sea', 'exec-argv-extension-cli')); | 22 | 22 |
| 23 | 23 | // Test that --node-options works with execArgvExtension: "cli" | 24 | 24 | spawnSyncAndAssert( | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 3 | 3 | require('../common'); | 4 | 4 |
| 5 | 5 | const { | 6 | | - generateSEA, | 7 | | - skipIfSingleExecutableIsNotSupported, | | 6 | + buildSEA, | | 7 | + skipIfBuildSEAIsNotSupported, | 8 | 8 | } = require('../common/sea'); | 9 | 9 |
| 10 | | -skipIfSingleExecutableIsNotSupported(); | | 10 | +skipIfBuildSEAIsNotSupported(); | 11 | 11 |
| 12 | 12 | // This tests the execArgvExtension "env" mode (default) in single executable applications. | 13 | 13 |
| @@ -19,7 +19,7 @@ const fixtures = require('../common/fixtures'); | 19 | 19 |
| 20 | 20 | tmpdir.refresh(); | 21 | 21 |
| 22 | | -const outputFile = generateSEA(fixtures.path('sea', 'exec-argv-extension-env')); | | 22 | +const outputFile = buildSEA(fixtures.path('sea', 'exec-argv-extension-env')); | 23 | 23 |
| 24 | 24 | // Test that NODE_OPTIONS works with execArgvExtension: "env" (default behavior) | 25 | 25 | spawnSyncAndAssert( | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
| 3 | 3 | require('../common'); | 4 | 4 |
| 5 | 5 | const { | 6 | | - generateSEA, | 7 | | - skipIfSingleExecutableIsNotSupported, | | 6 | + buildSEA, | | 7 | + skipIfBuildSEAIsNotSupported, | 8 | 8 | } = require('../common/sea'); | 9 | 9 |
| 10 | | -skipIfSingleExecutableIsNotSupported(); | | 10 | +skipIfBuildSEAIsNotSupported(); | 11 | 11 |
| 12 | 12 | // This tests the execArgvExtension "none" mode in single executable applications. | 13 | 13 |
| @@ -18,7 +18,7 @@ const fixtures = require('../common/fixtures'); | 18 | 18 |
| 19 | 19 | tmpdir.refresh(); | 20 | 20 |
| 21 | | -const outputFile = generateSEA(fixtures.path('sea', 'exec-argv-extension-none')); | | 21 | +const outputFile = buildSEA(fixtures.path('sea', 'exec-argv-extension-none')); | 22 | 22 |
| 23 | 23 | // Test that NODE_OPTIONS is ignored with execArgvExtension: "none" | 24 | 24 | spawnSyncAndAssert( | |
|