Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Another attempt to fix wasm tests
In preview5, the workload manifest overrides
`$(UsingBrowserRuntimeWorkload)` setting, so pass it on the command
line.

``xml
    <PropertyGroup Condition="'$(RuntimeIdentifier)' == 'browser-wasm'">
        <UsingBrowserRuntimeWorkload Condition="'$(RunAOTCompilation)' == 'true' or '$(UsingMicrosoftNETSdkBlazorWebAssembly)' != 'true'" >true</UsingBrowserRuntimeWorkload>
        <UsingBrowserRuntimeWorkload Condition="'$(UsingBrowserRuntimeWorkload)' == ''" >$(WasmNativeWorkload)</UsingBrowserRuntimeWorkload>
    </PropertyGroup>
```
  • Loading branch information
radical committed Jul 19, 2021
commit d0d93fb4f6e7f805dcecb437e1abdf7a441e70e5
4 changes: 4 additions & 0 deletions src/tests/BuildWasmApps/Wasm.Build.Tests/BuildEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ public BuildEnvironment()
DefaultBuildArgs = $" /p:RuntimeSrcDir={solutionRoot.FullName} /p:RuntimeConfig={s_runtimeConfig} /p:EMSDK_PATH={emsdkPath} ";
}

// needed to disable workloads on p5
// Later previews can be disabled by setting the properties in a Directory.Build.props
DefaultBuildArgs += " /p:UsingBrowserRuntimeWorkload=false /p:WasmNativeWorkload=false";

IsWorkload = false;
DotNet = "dotnet";
EnvVars = new Dictionary<string, string>()
Expand Down
2 changes: 1 addition & 1 deletion src/tests/Common/CLRTest.Execute.Bash.targets
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ else
__Command+=" dotnet"
fi

$__Command msbuild $CORE_ROOT/wasm-test-runner/WasmTestRunner.proj /p:NetCoreAppCurrent=$(NetCoreAppCurrent) /p:TestAssemblyFileName=$(MsBuildProjectName).dll /p:TestBinDir=`pwd` || exit $?
$__Command msbuild $CORE_ROOT/wasm-test-runner/WasmTestRunner.proj /p:NetCoreAppCurrent=$(NetCoreAppCurrent) /p:TestAssemblyFileName=$(MsBuildProjectName).dll /p:TestBinDir=`pwd` $(CLRTestMSBuildArgs) || exit $?

]]>
</BashCLRTestPreCommands>
Expand Down
7 changes: 3 additions & 4 deletions src/tests/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@
<BaselineMicrosoftNetCoreAppPackageVersion>2.1.0-preview3-26416-01</BaselineMicrosoftNetCoreAppPackageVersion>
</PropertyGroup>

<ItemGroup>
<CLRTestBashEnvironmentVariable Include="export UsingBrowserRuntimeWorkload=false" Condition="'$(TargetOS)' == 'Browser'" />
<CLRTestBashEnvironmentVariable Include="export WasmNativeWorkload=false" Condition="'$(TargetOS)' == 'Browser'" />
</ItemGroup>
<PropertyGroup Condition="'$(TargetOS)' == 'Browser'">
<CLRTestMSBuildArgs>/p:UsingBrowserRuntimeWorkload=false /p:WasmNativeWorkload=false</CLRTestMSBuildArgs>
</PropertyGroup>
</Project>