|
20 | 20 | </PropertyGroup>
|
21 | 21 |
|
22 | 22 | <PropertyGroup Condition="'$(TargetOS)' == 'Browser' and '$(BuildWasmAOTTestsOnHelix)' == 'true'">
|
23 |
| - <RunScriptCommand >dotnet msbuild publish/aot-build.proj /bl:$XHARNESS_OUT/AOTBuild.binlog</RunScriptCommand> |
24 |
| - <RunScriptCommand Condition="'$(BuildWasmTestsOn)' == 'helix' and '$(ContinuousIntegrationBuild)' != 'true'">$(RunScriptCommand) /p:RuntimeSrcDir=$(RepoRoot) /p:RuntimeConfig=$(Configuration)</RunScriptCommand> |
25 |
| - <RunScriptCommand Condition="'$(BuildWasmTestsOn)' == 'helix' and '$(ContinuousIntegrationBuild)' == 'true'">$(RunScriptCommand) /p:WasmBuildSupportDir=$HELIX_CORRELATION_PAYLOAD/build</RunScriptCommand> |
26 |
| - <RunScriptCommand >$(RunScriptCommand) /p:RunAOTCompilation=$(RunAOTCompilation)</RunScriptCommand> |
| 23 | + <RunScriptCommand >dotnet msbuild publish/AOTTestProjectForHelix.proj /bl:$XHARNESS_OUT/AOTBuild.binlog</RunScriptCommand> |
27 | 24 |
|
28 |
| - <RunScriptCommand>$(RunScriptCommand) && cd wasm_build/AppBundle &&</RunScriptCommand> |
| 25 | + <!-- running aot-helix tests locally, so we can test with the same project file as CI --> |
| 26 | + <RunScriptCommand Condition="'$(ContinuousIntegrationBuild)' != 'true'">$(RunScriptCommand) /p:RuntimeSrcDir=$(RepoRoot) /p:RuntimeConfig=$(Configuration)</RunScriptCommand> |
| 27 | + |
| 28 | + <!-- running aot-helix tests on helix! --> |
| 29 | + <RunScriptCommand Condition="'$(ContinuousIntegrationBuild)' == 'true'">$(RunScriptCommand) /p:WasmBuildSupportDir=$HELIX_CORRELATION_PAYLOAD/build</RunScriptCommand> |
| 30 | + |
| 31 | + <RunScriptCommand >$(RunScriptCommand) /p:RunAOTCompilation=$(RunAOTCompilation)</RunScriptCommand> |
| 32 | + <RunScriptCommand >$(RunScriptCommand) && cd wasm_build/AppBundle</RunScriptCommand> |
29 | 33 | </PropertyGroup>
|
30 | 34 |
|
31 | 35 | <PropertyGroup Condition="'$(TargetOS)' == 'Browser'">
|
| 36 | + <RunScriptCommand Condition="'$(RunScriptCommand)' != ''">$(RunScriptCommand) &&</RunScriptCommand> |
| 37 | + |
32 | 38 | <!-- We need to set this in order to get extensibility on xunit category traits and other arguments we pass down to xunit via MSBuild properties -->
|
33 | 39 | <RunScriptCommand Condition="'$(IsFunctionalTest)' != 'true' and '$(Scenario)' != 'BuildWasmApps'">$(RunScriptCommand) $HARNESS_RUNNER wasm $XHARNESS_COMMAND --app=. --engine=$(JSEngine) $(JSEngineArgs) --js-file=runtime.js --output-directory=$XHARNESS_OUT -- $(RunTestsJSArguments) --run WasmTestRunner.dll $(AssemblyName).dll</RunScriptCommand>
|
34 | 40 | <RunScriptCommand Condition="'$(IsFunctionalTest)' == 'true'">$(RunScriptCommand) $HARNESS_RUNNER wasm $XHARNESS_COMMAND --app=. --engine=$(JSEngine) $(JSEngineArgs) --js-file=runtime.js --output-directory=$XHARNESS_OUT --expected-exit-code=$(ExpectedExitCode) -- $(RunTestsJSArguments) --run $(AssemblyName).dll --testing</RunScriptCommand>
|
|
280 | 286 |
|
281 | 287 | <Target Name="BundleTestWasmApp" Condition="'$(TargetOS)' == 'Browser'" DependsOnTargets="$(BundleTestWasmAppDependsOn)" />
|
282 | 288 |
|
| 289 | + <UsingTask Condition="'$(BuildWasmAOTTestsOnHelix)' == 'true'" TaskName="Microsoft.WebAssembly.Build.Tasks.GenerateAOTProps" AssemblyFile="$(WasmBuildTasksAssemblyPath)" /> |
283 | 290 | <Target Name="_BundleAOTTestWasmAppForHelix" DependsOnTargets="PrepareForWasmBuildApp">
|
284 | 291 | <ItemGroup>
|
285 | 292 | <BundleFiles Include="$(WasmMainJSPath)" TargetDir="publish" />
|
|
289 | 296 | <BundleFiles Include="$(MonoProjectRoot)\wasm\data\aot-tests\*" TargetDir="publish" />
|
290 | 297 | </ItemGroup>
|
291 | 298 |
|
| 299 | + <!-- To recreate the original project on helix, we need to set the wasm properties also, same as the |
| 300 | + library test project. Eg. $(InvariantGlobalization) --> |
| 301 | + <ItemGroup> |
| 302 | + <_WasmPropertyNames Include="InvariantGlobalization" /> |
| 303 | + <_WasmPropertyNames Include="AOTMode" /> |
| 304 | + <_WasmPropertyNames Include="WasmDebugLevel" /> |
| 305 | + <_WasmPropertyNames Include="WasmBuildNative" /> |
| 306 | + <_WasmPropertyNames Include="_WasmDevel" /> |
| 307 | + <_WasmPropertyNames Include="WasmLinkIcalls" /> |
| 308 | + <_WasmPropertyNames Include="WasmDedup" /> |
| 309 | + |
| 310 | + <_WasmPropertiesToPass |
| 311 | + Include="$(%(_WasmPropertyNames.Identity))" |
| 312 | + Name="%(_WasmPropertyNames.Identity)" |
| 313 | + ConditionToUse="%(_WasmPropertyNames.ConditionToUse)" /> |
| 314 | + </ItemGroup> |
| 315 | + |
| 316 | + <!-- This file gets imported by the project file on helix --> |
| 317 | + <GenerateAOTProps |
| 318 | + Properties="@(_WasmPropertiesToPass)" |
| 319 | + OutputFile="$(BundleDir)publish\AOTTestProjectForHelix.props" /> |
| 320 | + |
292 | 321 | <Copy SourceFiles="@(BundleFiles)" DestinationFolder="$(BundleDir)%(TargetDir)" />
|
293 | 322 | <Copy SourceFiles="@(WasmFilesToIncludeInFileSystem)" DestinationFiles="$(BundleDir)\extraFiles\%(WasmFilesToIncludeInFileSystem.TargetPath)" Condition="'%(WasmFilesToIncludeInFileSystem.TargetPath)' != ''" />
|
294 | 323 | </Target>
|
|
0 commit comments