-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[wasm] Add Wasm.Build tests, for testing wasm app builds #47683
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
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
2739be7
[wasm] Add Wasm.Build tests, for testing wasm app builds
radical 25c2340
[wasm] Disable il stripping completely
radical 3af97d1
Bump helix timeout for tests from 30m to 60m
radical 8ef0923
[wasm] Cleanup builing RunScriptCommand
radical 03e8730
[wasm] Fix timeout string, 00:60:00 to 01:00:00
radical 9aee29e
[wasm] Fix path to build support dir
radical 33f6995
cleanup
radical ef0e104
[wasm] fix InvariantGlobalization test
radical b074297
[wasm] cleanup Wasm.Build.Tests.csproj
radical e0c5a7c
[wasm] Add `include_aot` param for the test data
radical 9600a13
[wasm] Enable verbose output for xunit
radical d10510e
Merge remote-tracking branch 'origin/main' into dbg-again
radical 8aeec63
[wasm] fix tests
radical b94865f
[wasm] Really enable verbose output for xunit, this time
radical 33efd20
[wasm] Update tests to track the xharness fix for expected-exit-code
radical a31092d
Merge remote-tracking branch 'origin/main' into dbg-again
radical 204b3ee
Merge remote-tracking branch 'origin/main' into dbg-again
radical ac147c7
[wasm] Bump browser job's timeout from 120 to 180 mins
radical 2bf3845
Improve comment
radical 31d5d2f
Update eng/testing/tests.mobile.targets
radical ead13ee
Remove unrelated commit
radical 17ce3d8
Merge remote-tracking branch 'origin/main' into tmp-wasm-build-tests
radical 7be536d
Revert "Remove unrelated commit"
radical 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <Project> | ||
| <PropertyGroup> | ||
| <Scenario>BuildWasmApps</Scenario> | ||
| </PropertyGroup> | ||
| <Import Project="..\..\libraries\Directory.Build.props" /> | ||
| </Project> |
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,8 @@ | ||
| <Project> | ||
| <Import Project="..\..\libraries\Directory.Build.targets" /> | ||
|
|
||
| <PropertyGroup> | ||
| <BundleDir>$(OutDir)</BundleDir> | ||
| <RunScriptOutputPath>$(OutDir)\RunTests.sh</RunScriptOutputPath> | ||
| </PropertyGroup> | ||
| </Project> |
34 changes: 34 additions & 0 deletions
34
src/tests/BuildWasmApps/Wasm.Build.Tests/Wasm.Build.Tests.csproj
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,34 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFrameworks>$(NetCoreAppToolCurrent)</TargetFrameworks> | ||
| <SkipTestUtilitiesReference>true</SkipTestUtilitiesReference> | ||
| <IsTestProject>true</IsTestProject> | ||
| <BundleXunitRunner>true</BundleXunitRunner> | ||
| <CLRTestKind>BuildAndRun</CLRTestKind> | ||
| <TestFramework>xunit</TestFramework> | ||
| <WasmGenerateAppBundle>false</WasmGenerateAppBundle> | ||
|
|
||
| <!-- don't run any wasm build steps --> | ||
| <WasmBuildAppAfterThisTarget /> | ||
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup Condition="'$(ContinuousIntegrationBuild)' == 'true'"> | ||
| <_PreCommand>WasmBuildSupportDir=%24{HELIX_CORRELATION_PAYLOAD}/build</_PreCommand> | ||
| <_PreCommand>$(_PreCommand) DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1</_PreCommand> | ||
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup> | ||
| <_PreCommand>$(_PreCommand) TEST_LOG_PATH=%24{XHARNESS_OUT}/logs</_PreCommand> | ||
| <_PreCommand>$(_PreCommand) HARNESS_RUNNER=%24{HARNESS_RUNNER}</_PreCommand> | ||
|
|
||
| <RunScriptCommand>$(_PreCommand) dotnet exec xunit.console.dll $(AssemblyName).dll -xml %24XHARNESS_OUT/testResults.xml</RunScriptCommand> | ||
| <RunScriptCommand Condition="'$(ContinuousIntegrationBuild)' == 'true'">$(RunScriptCommand) -nocolor</RunScriptCommand> | ||
| <RunScriptCommand Condition="'$(ContinuousIntegrationBuild)' == 'true' or '$(XUnitShowProgress)' == 'true'">$(RunScriptCommand) -verbose</RunScriptCommand> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <Compile Include="WasmBuildAppTest.cs" /> | ||
|
|
||
| <None Include="$(RepoRoot)\src\mono\wasm\runtime-test.js" CopyToOutputDirectory="PreserveNewest" /> | ||
| </ItemGroup> | ||
| </Project> |
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.