Commit 11408ab
[wasm] build paltests (#112404)
* Make configure pass for wasm and paltests component
Disable few parts, some might need closer look later.
* Fix compilation and linking on wasm
* Ignore limits and dlopen(nullptr, ...) on wasm
* Do not return 0 for minipal_get_current_thread_id on wasm
* Add simple index.html to run paltests on wasm in browser
* Forward console log and error to http server
* Enable debug output temporarily
* Do not create synchronization manager worker thread on wasm
And also skip creating pipe to communicate with it
* Temporarily override main args on wasm to simplify testing
* Prototype pal test suite runner
* Reload between tests to work around stack exhaustion
* Shorter delay between tests; logging of exit code specifies which test it was so you can pull the test statuses out of a log file
* Add mechanism for disabling tests and disable the debug_api tests
* Disable another set of tests
* Disable more tests and reduce run delay
* Full test run completes now
* Use exit runtime option
To avoid error messages at the end of each run
* Add summary with counts of passed, failed and disabled tests
* Trap on assert to stop
* Filter the tests, use paltestlist.txt as runpaltests.sh
Also write missing tests
* Don't output when capturing tests
Also fix disabled tests count
* Add notes to failing tests
* Make flush instruction cache no-op on wasm, disable few MT tests
* Reenable debug_api test, which is not failing
Add few more notes to failing memory related tests
* Do not call mmap to re-set memory protection
Emscripten's mmap doesn't support that and because we don't have virtual memory
in wasm, it doesn't make sense to call it there
* Disable 3 exception_handling/RaiseException tests
Also re-enable debug test, which works and disable few MT tests
* Disable paltest_probememory_probememory_neg1
* Disable dll tests on wasm
* Fix cmake warnings
* Install the additional files for wasm
* Use onExit instead of quit
This fixes issue with newer emscripten, where Module['quit'] handling is removed.
Also fix single test runs.
* Add mono.emsdk subset
* Remove forgotten check
* Update msbuild targets to allow build of wasm paltests
* Add CI build and temporarily disable all other runtime builds to save resources
* Fix remaining conflict
* Fix build afer merge with main
* Make membarrier noop on wasm
* Change subsets build order
* Disable fs test which fails with chromedriver
* Fix InternalCanonicalizeRealPath corner case that affects wasm pal tests
* Zero memory for MEM_DECOMMIT on WASM instead of just doing nothing, to at least get slightly closer to intended behavior
* Removed notes about the failing tests
* Fix few new cmake warnings
* Put runtime runs back
* Remove unwanted changes
* List disabled and failed tests when the run completed
* Fix mono wasm/MT build
* Remove unwanted fields
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
* Fix mono wasm/MT build once more
* Fix windows build
* Fix windows build
* Feedback
* More feedback
* More feedback
* More feedback
* Feedback
* Fix cmake warning
* Update src/coreclr/pal/src/CMakeLists.txt
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
* Update src/coreclr/pal/src/CMakeLists.txt
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
* Update src/coreclr/pal/src/CMakeLists.txt
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
* Update src/coreclr/pal/src/CMakeLists.txt
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
* Feedback
---------
Co-authored-by: Katelyn Gadd <kg@luminance.org>
Co-authored-by: Larry Ewing <lewing@microsoft.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>1 parent c6a3984 commit 11408ab
File tree
38 files changed
+475
-38
lines changed- eng
- pipelines
- src
- coreclr
- inc
- interpreter
- jit
- pal
- inc
- rt
- src
- arch/wasm
- debug
- exception
- file
- include/pal
- init
- loader
- map
- misc
- synchmgr
- thread
- tests/palsuite
- exception_handling/pal_sxs/test1
- wasm
- tools
- mono
- native
- corehost/apphost/static
- libs
- System.Globalization.Native
- System.Net.Security.Native
- minipal
38 files changed
+475
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| |||
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
267 | 273 | | |
268 | 274 | | |
269 | 275 | | |
| |||
325 | 331 | | |
326 | 332 | | |
327 | 333 | | |
328 | | - | |
| 334 | + | |
329 | 335 | | |
330 | 336 | | |
331 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
120 | 135 | | |
121 | 136 | | |
122 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
265 | | - | |
| 266 | + | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
| |||
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
283 | | - | |
| 284 | + | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
498 | 501 | | |
499 | 502 | | |
500 | 503 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2469 | 2469 | | |
2470 | 2470 | | |
2471 | 2471 | | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
2472 | 2492 | | |
2473 | 2493 | | |
2474 | 2494 | | |
| |||
2600 | 2620 | | |
2601 | 2621 | | |
2602 | 2622 | | |
| 2623 | + | |
| 2624 | + | |
2603 | 2625 | | |
2604 | 2626 | | |
2605 | 2627 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1003 | 1003 | | |
1004 | 1004 | | |
1005 | 1005 | | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
1006 | 1014 | | |
1007 | 1015 | | |
1008 | 1016 | | |
| |||
0 commit comments