GeezerVison is showing github.com — test: move sea tests into test/sea · nodejs/node@8caae1a
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: .github/CODEOWNERS +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 158 | 158 | /doc/contributing/maintaining/maintaining-single-executable-application-support.md @nodejs/single-executable | 159 | 159 | /src/node_sea* @nodejs/single-executable | 160 | 160 | /test/fixtures/postject-copy @nodejs/single-executable | 161 | | -/test/parallel/test-single-executable-* @nodejs/single-executable | 162 | | -/test/sequential/test-single-executable-* @nodejs/single-executable | | 161 | +/test/sea @nodejs/single-executable | 163 | 162 | /tools/dep_updaters/update-postject.sh @nodejs/single-executable | 164 | 163 |
| 165 | 164 | # Permission Model | |
Collapse file Copy file name to clipboard +38Lines changed: 38 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +prefix sea | | 2 | + | | 3 | +# To mark a test as flaky, list the test name in the appropriate section | | 4 | +# below, without ".js", followed by ": PASS,FLAKY". Example: | | 5 | +# sample-test : PASS,FLAKY | | 6 | + | | 7 | +[true] # This section applies to all platforms | | 8 | + | | 9 | +[$system==macos && $arch==x64] | | 10 | +# https://github.com/nodejs/node/issues/59553 | | 11 | +test-single-executable-application: PASS, FLAKY | | 12 | +test-single-executable-application-assets: PASS, FLAKY | | 13 | +test-single-executable-application-assets-raw: PASS, FLAKY | | 14 | +test-single-executable-application-asset-keys-empty: PASS, FLAKY | | 15 | +test-single-executable-application-asset-keys: PASS, FLAKY | | 16 | +test-single-executable-application-disable-experimental-sea-warning: PASS, FLAKY | | 17 | +test-single-executable-application-empty: PASS, FLAKY | | 18 | +test-single-executable-application-exec-argv: PASS, FLAKY | | 19 | +test-single-executable-application-exec-argv-empty: PASS, FLAKY | | 20 | +test-single-executable-application-exec-argv-extension-cli: PASS, FLAKY | | 21 | +test-single-executable-application-exec-argv-extension-env: PASS, FLAKY | | 22 | +test-single-executable-application-exec-argv-extension-none: PASS, FLAKY | | 23 | +test-single-executable-application-inspect-in-sea-flags: PASS, FLAKY | | 24 | +test-single-executable-application-inspect: PASS, FLAKY | | 25 | +test-single-executable-application-snapshot: PASS, FLAKY | | 26 | +test-single-executable-application-snapshot-and-code-cache: PASS, FLAKY | | 27 | +test-single-executable-application-snapshot-worker: PASS, FLAKY | | 28 | +test-single-executable-application-use-code-cache: PASS, FLAKY | | 29 | + | | 30 | + | | 31 | +[$system==linux && $arch==ppc64] | | 32 | +# https://github.com/nodejs/node/issues/59561 | | 33 | +test-single-executable-application*: SKIP | | 34 | + | | 35 | +[$system==win32] | | 36 | +# https://github.com/nodejs/node/issues/49630 | | 37 | +test-single-executable-application-snapshot: PASS, FLAKY | | 38 | +test-single-executable-application-snapshot-and-code-cache: PASS, FLAKY |
Collapse file Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-asset-keys-empty.js +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -43,7 +43,7 @@ spawnSyncAndExitWithoutError( | 43 | 43 | NODE_DEBUG_NATIVE: 'SEA', | 44 | 44 | ...process.env, | 45 | 45 | }, | 46 | | - cwd: tmpdir.path | | 46 | + cwd: tmpdir.path, | 47 | 47 | }, | 48 | 48 | {}); | 49 | 49 |
| @@ -57,9 +57,9 @@ spawnSyncAndAssert( | 57 | 57 | env: { | 58 | 58 | ...process.env, | 59 | 59 | NODE_DEBUG_NATIVE: 'SEA', | 60 | | - } | | 60 | + }, | 61 | 61 | }, | 62 | 62 | { | 63 | 63 | stdout: /Asset keys: \[\]/, | 64 | | - } | | 64 | + }, | 65 | 65 | ); |
Collapse file Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-asset-keys.js +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -52,7 +52,7 @@ spawnSyncAndExitWithoutError( | 52 | 52 | NODE_DEBUG_NATIVE: 'SEA', | 53 | 53 | ...process.env, | 54 | 54 | }, | 55 | | - cwd: tmpdir.path | | 55 | + cwd: tmpdir.path, | 56 | 56 | }, | 57 | 57 | {}); | 58 | 58 |
| @@ -66,9 +66,9 @@ spawnSyncAndAssert( | 66 | 66 | env: { | 67 | 67 | ...process.env, | 68 | 68 | NODE_DEBUG_NATIVE: 'SEA', | 69 | | - } | | 69 | + }, | 70 | 70 | }, | 71 | 71 | { | 72 | 72 | stdout: /Asset keys: \["asset-1\.txt","asset-2\.txt","asset-3\.txt"\]/, | 73 | | - } | | 73 | + }, | 74 | 74 | ); |
Collapse file Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-assets-raw.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -50,7 +50,7 @@ const outputFile = tmpdir.resolve(process.platform === 'win32' ? 'sea.exe' : 'se | 50 | 50 | NODE_DEBUG_NATIVE: 'SEA', | 51 | 51 | ...process.env, | 52 | 52 | }, | 53 | | - cwd: tmpdir.path | | 53 | + cwd: tmpdir.path, | 54 | 54 | }); | 55 | 55 |
| 56 | 56 | assert(existsSync(seaPrepBlob)); | @@ -64,7 +64,7 @@ const outputFile = tmpdir.resolve(process.platform === 'win32' ? 'sea.exe' : 'se | 64 | 64 | ...process.env, | 65 | 65 | NODE_DEBUG_NATIVE: 'SEA', | 66 | 66 | __TEST_PERSON_JPG: fixtures.path('person.jpg'), | 67 | | - } | | 67 | + }, | 68 | 68 | }, | 69 | 69 | ); | 70 | 70 | } |
Collapse file Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-assets.js +7-7Lines changed: 7 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -45,12 +45,12 @@ const outputFile = tmpdir.resolve(process.platform === 'win32' ? 'sea.exe' : 'se | 45 | 45 | process.execPath, | 46 | 46 | ['--experimental-sea-config', 'sea-config.json'], | 47 | 47 | { | 48 | | - cwd: tmpdir.path | | 48 | + cwd: tmpdir.path, | 49 | 49 | }, | 50 | 50 | { | 51 | 51 | status: 1, | 52 | 52 | signal: null, | 53 | | - stderr: /"assets" field of sea-config\.json is not a map of strings/ | | 53 | + stderr: /"assets" field of sea-config\.json is not a map of strings/, | 54 | 54 | }); | 55 | 55 | } | 56 | 56 |
| @@ -71,12 +71,12 @@ const outputFile = tmpdir.resolve(process.platform === 'win32' ? 'sea.exe' : 'se | 71 | 71 | process.execPath, | 72 | 72 | ['--experimental-sea-config', 'sea-config.json'], | 73 | 73 | { | 74 | | - cwd: tmpdir.path | | 74 | + cwd: tmpdir.path, | 75 | 75 | }, | 76 | 76 | { | 77 | 77 | status: 1, | 78 | 78 | signal: null, | 79 | | - stderr: /Cannot read asset nonexistent\.txt: no such file or directory/ | | 79 | + stderr: /Cannot read asset nonexistent\.txt: no such file or directory/, | 80 | 80 | }); | 81 | 81 | } | 82 | 82 |
| @@ -104,7 +104,7 @@ const outputFile = tmpdir.resolve(process.platform === 'win32' ? 'sea.exe' : 'se | 104 | 104 | NODE_DEBUG_NATIVE: 'SEA', | 105 | 105 | ...process.env, | 106 | 106 | }, | 107 | | - cwd: tmpdir.path | | 107 | + cwd: tmpdir.path, | 108 | 108 | }); | 109 | 109 |
| 110 | 110 | assert(existsSync(seaPrepBlob)); | @@ -119,11 +119,11 @@ const outputFile = tmpdir.resolve(process.platform === 'win32' ? 'sea.exe' : 'se | 119 | 119 | NODE_DEBUG_NATIVE: 'SEA', | 120 | 120 | __TEST_PERSON_JPG: fixtures.path('person.jpg'), | 121 | 121 | __TEST_UTF8_TEXT_PATH: fixtures.path('utf8_test_text.txt'), | 122 | | - } | | 122 | + }, | 123 | 123 | }, | 124 | 124 | { | 125 | 125 | trim: true, | 126 | 126 | stdout: fixtures.utf8TestText, | 127 | | - } | | 127 | + }, | 128 | 128 | ); | 129 | 129 | } |
Collapse file Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-disable-experimental-sea-warning.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -60,8 +60,8 @@ spawnSyncAndAssert( | 60 | 60 | COMMON_DIRECTORY: join(__dirname, '..', 'common'), | 61 | 61 | NODE_DEBUG_NATIVE: 'SEA', | 62 | 62 | ...process.env, | 63 | | - } | | 63 | + }, | 64 | 64 | }, | 65 | 65 | { | 66 | | - stdout: 'Hello, world! 😊\n' | | 66 | + stdout: 'Hello, world! 😊\n', | 67 | 67 | }); |
Collapse file Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-empty.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -59,5 +59,5 @@ spawnSyncAndExitWithoutError( | 59 | 59 | env: { | 60 | 60 | NODE_DEBUG_NATIVE: 'SEA', | 61 | 61 | ...process.env, | 62 | | - } | | 62 | + }, | 63 | 63 | }); |
Collapse file Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-exec-argv-empty.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -54,8 +54,8 @@ spawnSyncAndAssert( | 54 | 54 | COMMON_DIRECTORY: join(__dirname, '..', 'common'), | 55 | 55 | NODE_DEBUG_NATIVE: 'SEA', | 56 | 56 | ...process.env, | 57 | | - } | | 57 | + }, | 58 | 58 | }, | 59 | 59 | { | 60 | | - stdout: /empty execArgv test passed/ | | 60 | + stdout: /empty execArgv test passed/, | 61 | 61 | }); |
Collapse file Copy file name to clipboardExpand all lines: test/sea/test-single-executable-application-exec-argv-extension-cli.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -56,8 +56,8 @@ spawnSyncAndAssert( | 56 | 56 | NODE_OPTIONS: '--max-old-space-size=2048', // Should be ignored | 57 | 57 | COMMON_DIRECTORY: join(__dirname, '..', 'common'), | 58 | 58 | NODE_DEBUG_NATIVE: 'SEA', | 59 | | - } | | 59 | + }, | 60 | 60 | }, | 61 | 61 | { | 62 | | - stdout: /execArgvExtension cli test passed/ | | 62 | + stdout: /execArgvExtension cli test passed/, | 63 | 63 | }); |
|