-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[wasm] build paltests #112404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[wasm] build paltests #112404
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
779f950
Make configure pass for wasm and paltests component
radekdoulik b33f467
Fix compilation and linking on wasm
radekdoulik 812d033
Ignore limits and dlopen(nullptr, ...) on wasm
radekdoulik d5609a1
Do not return 0 for minipal_get_current_thread_id on wasm
radekdoulik 249c63b
Add simple index.html to run paltests on wasm in browser
radekdoulik 182dbab
Forward console log and error to http server
radekdoulik 1e85092
Enable debug output temporarily
radekdoulik e3a397d
Do not create synchronization manager worker thread on wasm
radekdoulik c815832
Temporarily override main args on wasm to simplify testing
radekdoulik b31bd17
Prototype pal test suite runner
kg c8e6f43
Reload between tests to work around stack exhaustion
kg e398347
Shorter delay between tests; logging of exit code specifies which tes…
kg ceecb69
Add mechanism for disabling tests and disable the debug_api tests
kg 25911d5
Disable another set of tests
kg b764cab
Disable more tests and reduce run delay
kg 10ca17d
Full test run completes now
kg 7d323bc
Use exit runtime option
radekdoulik 5f57edc
Add summary with counts of passed, failed and disabled tests
radekdoulik 0ed2e2c
Trap on assert to stop
radekdoulik 9a724a8
Filter the tests, use paltestlist.txt as runpaltests.sh
radekdoulik e6ae8b4
Don't output when capturing tests
radekdoulik b7e67f9
Add notes to failing tests
radekdoulik ebe84a5
Make flush instruction cache no-op on wasm, disable few MT tests
radekdoulik 25639aa
Reenable debug_api test, which is not failing
radekdoulik ee586b5
Do not call mmap to re-set memory protection
radekdoulik 5025bc5
Disable 3 exception_handling/RaiseException tests
radekdoulik b0b5dff
Disable paltest_probememory_probememory_neg1
radekdoulik db1ee87
Disable dll tests on wasm
radekdoulik 5529d79
Fix cmake warnings
radekdoulik 1fc2a12
Install the additional files for wasm
radekdoulik 2723525
Use onExit instead of quit
radekdoulik 1980944
Add mono.emsdk subset
radekdoulik 399c0a5
Remove forgotten check
radekdoulik fc4b084
Update msbuild targets to allow build of wasm paltests
radekdoulik 738a2e4
Add CI build and temporarily disable all other runtime builds to save…
radekdoulik e3ceeca
Merge remote-tracking branch 'remotes/origin/main'
radekdoulik 062a5ec
Fix remaining conflict
radekdoulik 763ffbd
Fix build afer merge with main
radekdoulik 2abcabf
Make membarrier noop on wasm
radekdoulik f118db1
Change subsets build order
radekdoulik 46e8dd2
Merge branch 'main' into wasm-build
lewing bd7f383
Disable fs test which fails with chromedriver
radekdoulik 96f70e1
Fix InternalCanonicalizeRealPath corner case that affects wasm pal tests
kg 4dbb97d
Zero memory for MEM_DECOMMIT on WASM instead of just doing nothing, t…
kg e735301
Removed notes about the failing tests
radekdoulik a622aad
Fix few new cmake warnings
radekdoulik 9635ab5
Put runtime runs back
radekdoulik f9569ed
Merge branch 'main' into wasm-build
radekdoulik 8576c23
Remove unwanted changes
radekdoulik cfccd4b
List disabled and failed tests when the run completed
radekdoulik 03b890d
Fix mono wasm/MT build
radekdoulik efe85cb
Remove unwanted fields
radekdoulik f230b37
Merge branch 'main' into wasm-build
radekdoulik c592985
Fix mono wasm/MT build once more
radekdoulik f280813
Fix windows build
radekdoulik ffd05ad
Merge branch 'main' into wasm-build
radekdoulik 9caabff
Fix windows build
radekdoulik c5185e9
Merge branch 'main' into wasm-build
radekdoulik 3414b4b
Merge branch 'main' into wasm-build
radekdoulik 04dc417
Feedback
radekdoulik 0518bfb
More feedback
radekdoulik a3e61cd
More feedback
radekdoulik 026ce15
More feedback
radekdoulik 0f63c60
Merge remote-tracking branch 'remotes/origin/main' into wasm-build
radekdoulik ee63033
Feedback
radekdoulik a776620
Fix cmake warning
radekdoulik 2a04e29
Merge branch 'main' into wasm-build
radekdoulik 400ee66
Update src/coreclr/pal/src/CMakeLists.txt
radekdoulik acd97d9
Update src/coreclr/pal/src/CMakeLists.txt
radekdoulik 1275e46
Update src/coreclr/pal/src/CMakeLists.txt
radekdoulik 07846df
Update src/coreclr/pal/src/CMakeLists.txt
radekdoulik e1e129e
Feedback
radekdoulik bd923a4
Merge branch 'main' into wasm-build
radekdoulik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
#include "pal/dbgmsg.h" | ||
radekdoulik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#include "pal/signal.hpp" | ||
|
||
SET_DEFAULT_DEBUG_CHANNEL(EXCEPT); // some headers have code with asserts, so do this first | ||
|
||
/* debugbreak */ | ||
|
||
extern "C" void | ||
DBG_DebugBreak() | ||
{ | ||
asm volatile ("unreachable"); | ||
} | ||
|
||
/* context */ | ||
|
||
extern "C" void | ||
RtlCaptureContext(OUT PCONTEXT ContextRecord) | ||
{ | ||
_ASSERT("RtlCaptureContext not implemented on wasm"); | ||
} | ||
|
||
extern "C" void | ||
CONTEXT_CaptureContext(LPCONTEXT lpContext) | ||
{ | ||
_ASSERT("CONTEXT_CaptureContext not implemented on wasm"); | ||
} | ||
|
||
extern "C" void ThrowExceptionFromContextInternal(CONTEXT* context, PAL_SEHException* ex) | ||
{ | ||
_ASSERT("ThrowExceptionFromContextInternal not implemented on wasm"); | ||
} | ||
|
||
/* unwind */ | ||
|
||
void ExecuteHandlerOnCustomStack(int code, siginfo_t *siginfo, void *context, size_t sp, SignalHandlerWorkerReturnPoint* returnPoint) | ||
{ | ||
_ASSERT("ExecuteHandlerOnCustomStack not implemented on wasm"); | ||
} | ||
|
||
extern "C" int unw_getcontext(int) | ||
{ | ||
_ASSERT("unw_getcontext not implemented on wasm"); | ||
return 0; | ||
} | ||
|
||
extern "C" int unw_init_local(int, int) | ||
{ | ||
_ASSERT("unw_init_local not implemented on wasm"); | ||
return 0; | ||
} | ||
|
||
extern "C" int unw_step(int) | ||
{ | ||
_ASSERT("unw_step not implemented on wasm"); | ||
return 0; | ||
} | ||
|
||
extern "C" int unw_is_signal_frame(int) | ||
{ | ||
_ASSERT("unw_is_signal_frame not implemented on wasm"); | ||
return 0; | ||
} | ||
|
||
/* threading */ | ||
|
||
extern "C" int pthread_setschedparam(pthread_t, int, const struct sched_param *) | ||
{ | ||
_ASSERT("pthread_setschedparam not implemented on wasm"); | ||
return 0; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.