[wasm] Move `src/tests/BuildWasmApps/*` to `src/mono/wasm` (#74698)
authorAnkit Jain <radical@gmail.com>
Mon, 29 Aug 2022 21:34:35 +0000 (17:34 -0400)
committerGitHub <noreply@github.com>
Mon, 29 Aug 2022 21:34:35 +0000 (17:34 -0400)
- This will help simplifying the path subsets in
`eng/pipelines/common/evaluate-default-paths.yml`, which would then help
to avoid a lot of unrelated non-wasm builds on PRs

102 files changed:
.github/CODEOWNERS
docs/workflow/testing/testing-workloads.md
eng/pipelines/common/evaluate-default-paths.yml
eng/pipelines/coreclr/perf-wasm-prepare-artifacts-steps.yml
src/libraries/tests.proj
src/mono/wasm/Makefile
src/mono/wasm/Wasm.Build.Tests/BlazorWasmBuildPublishTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/BlazorWasmBuildPublishTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/BlazorWasmTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/BlazorWasmTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/BrowserRunner.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/BrowserRunner.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/BuildAndRunAttribute.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/BuildAndRunAttribute.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/BuildEnvironment.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/BuildEnvironment.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/BuildPublishTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/BuildPublishTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/BuildTestBase.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/CleanTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/CleanTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/CommandResult.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/CommandResult.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/ConfigSrcTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/ConfigSrcTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/Directory.Build.props [new file with mode: 0644]
src/mono/wasm/Wasm.Build.Tests/Directory.Build.targets [moved from src/tests/BuildWasmApps/Directory.Build.targets with 82% similarity]
src/mono/wasm/Wasm.Build.Tests/DotNetCommand.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/DotNetCommand.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/EnvironmentVariables.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/EnvironmentVariables.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/HelperExtensions.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/HelperExtensions.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/InvariantGlobalizationTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/InvariantGlobalizationTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/MainWithArgsTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/MainWithArgsTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/NativeBuildTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/NativeBuildTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/NativeLibraryTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/NativeLibraryTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/NativeRebuildTests/FlagsChangeRebuildTest.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/NativeRebuildTests/FlagsChangeRebuildTest.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/NativeRebuildTests/NativeRebuildTestsBase.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/NativeRebuildTests/NativeRebuildTestsBase.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/NativeRebuildTests/NoopNativeRebuildTest.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/NativeRebuildTests/NoopNativeRebuildTest.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/NativeRebuildTests/ReferenceNewAssemblyRebuildTest.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/NativeRebuildTests/ReferenceNewAssemblyRebuildTest.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/NativeRebuildTests/SimpleSourceChangeRebuildTest.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/NativeRebuildTests/SimpleSourceChangeRebuildTest.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/PInvokeTableGeneratorTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/PInvokeTableGeneratorTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/ProcessExtensions.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/ProcessExtensions.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/README.md [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/README.md with 92% similarity]
src/mono/wasm/Wasm.Build.Tests/RebuildTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/RebuildTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/RunCommand.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/RunCommand.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/RunHost.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/RunHost.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/SatelliteAssembliesTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/SatelliteAssembliesTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/SharedBuildPerTestClassFixture.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/SharedBuildPerTestClassFixture.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/ToolCommand.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/ToolCommand.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/Utils.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/Utils.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/Wasm.Build.Tests.csproj [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/Wasm.Build.Tests.csproj with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/WasmBuildAppTest.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/WasmBuildAppTest.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/WasmNativeDefaultsTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/WasmNativeDefaultsTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/WasmRunOutOfAppBundleTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/WasmRunOutOfAppBundleTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/WasmSIMDTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/WasmSIMDTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/WasmTemplateTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/WasmTemplateTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/WorkloadTests.cs [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/WorkloadTests.cs with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/data/Blazor.Directory.Build.props [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/data/Blazor.Directory.Build.props with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/data/Blazor.Directory.Build.targets [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/data/Blazor.Directory.Build.targets with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/data/Blazor.Local.Directory.Build.props [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/data/Blazor.Local.Directory.Build.props with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/data/Blazor.Local.Directory.Build.targets [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/data/Blazor.Local.Directory.Build.targets with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/data/Local.Directory.Build.props [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/data/Local.Directory.Build.props with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/data/Local.Directory.Build.targets [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/data/Local.Directory.Build.targets with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/data/RunScriptTemplate.cmd [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/data/RunScriptTemplate.cmd with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/data/RunScriptTemplate.sh [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/data/RunScriptTemplate.sh with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/data/Workloads.Directory.Build.props [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/data/Workloads.Directory.Build.props with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/data/Workloads.Directory.Build.targets [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/data/Workloads.Directory.Build.targets with 100% similarity]
src/mono/wasm/Wasm.Build.Tests/data/nuget7.config [moved from src/tests/BuildWasmApps/Wasm.Build.Tests/data/nuget7.config with 100% similarity]
src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestSuite.csproj
src/mono/wasm/debugger/README.md
src/mono/wasm/debugger/Wasm.Debugger.Tests/Directory.Build.props [new file with mode: 0644]
src/mono/wasm/debugger/Wasm.Debugger.Tests/Directory.Build.targets [new file with mode: 0644]
src/mono/wasm/debugger/Wasm.Debugger.Tests/Wasm.Debugger.Tests.csproj [moved from src/tests/BuildWasmApps/Wasm.Debugger.Tests/Wasm.Debugger.Tests.csproj with 97% similarity]
src/mono/wasm/debugger/Wasm.Debugger.Tests/data/RunScriptTemplate.cmd [moved from src/tests/BuildWasmApps/Wasm.Debugger.Tests/data/RunScriptTemplate.cmd with 100% similarity]
src/mono/wasm/debugger/Wasm.Debugger.Tests/data/RunScriptTemplate.sh [moved from src/tests/BuildWasmApps/Wasm.Debugger.Tests/data/RunScriptTemplate.sh with 100% similarity]
src/mono/wasm/runtime/workers/README.md
src/mono/wasm/sln/WasmBuild.sln
src/mono/wasm/testassets/AppUsingNativeLib/Program.cs [moved from src/tests/BuildWasmApps/testassets/AppUsingNativeLib/Program.cs with 100% similarity]
src/mono/wasm/testassets/AppUsingNativeLib/native-lib.cpp [moved from src/tests/BuildWasmApps/testassets/AppUsingNativeLib/native-lib.cpp with 100% similarity]
src/mono/wasm/testassets/AppUsingNativeLib/native-lib.h [moved from src/tests/BuildWasmApps/testassets/AppUsingNativeLib/native-lib.h with 100% similarity]
src/mono/wasm/testassets/AppUsingSkiaSharp/Program.cs [moved from src/tests/BuildWasmApps/testassets/AppUsingSkiaSharp/Program.cs with 100% similarity]
src/mono/wasm/testassets/Blazor_net50/App.razor [moved from src/tests/BuildWasmApps/testassets/Blazor_net50/App.razor with 100% similarity]
src/mono/wasm/testassets/Blazor_net50/Blazor_net50.csproj [moved from src/tests/BuildWasmApps/testassets/Blazor_net50/Blazor_net50.csproj with 100% similarity]
src/mono/wasm/testassets/Blazor_net50/Pages/Counter.razor [moved from src/tests/BuildWasmApps/testassets/Blazor_net50/Pages/Counter.razor with 100% similarity]
src/mono/wasm/testassets/Blazor_net50/Pages/FetchData.razor [moved from src/tests/BuildWasmApps/testassets/Blazor_net50/Pages/FetchData.razor with 100% similarity]
src/mono/wasm/testassets/Blazor_net50/Pages/Index.razor [moved from src/tests/BuildWasmApps/testassets/Blazor_net50/Pages/Index.razor with 100% similarity]
src/mono/wasm/testassets/Blazor_net50/Program.cs [moved from src/tests/BuildWasmApps/testassets/Blazor_net50/Program.cs with 100% similarity]
src/mono/wasm/testassets/Blazor_net50/Shared/MainLayout.razor [moved from src/tests/BuildWasmApps/testassets/Blazor_net50/Shared/MainLayout.razor with 100% similarity]
src/mono/wasm/testassets/Blazor_net50/Shared/MainLayout.razor.css [moved from src/tests/BuildWasmApps/testassets/Blazor_net50/Shared/MainLayout.razor.css with 100% similarity]
src/mono/wasm/testassets/Blazor_net50/Shared/NavMenu.razor [moved from src/tests/BuildWasmApps/testassets/Blazor_net50/Shared/NavMenu.razor with 100% similarity]
src/mono/wasm/testassets/Blazor_net50/Shared/NavMenu.razor.css [moved from src/tests/BuildWasmApps/testassets/Blazor_net50/Shared/NavMenu.razor.css with 100% similarity]
src/mono/wasm/testassets/Blazor_net50/Shared/SurveyPrompt.razor [moved from src/tests/BuildWasmApps/testassets/Blazor_net50/Shared/SurveyPrompt.razor with 100% similarity]
src/mono/wasm/testassets/Blazor_net50/_Imports.razor [moved from src/tests/BuildWasmApps/testassets/Blazor_net50/_Imports.razor with 100% similarity]
src/mono/wasm/testassets/SatelliteAssemblyFromProjectRef/LibraryWithResources/Class1.cs [moved from src/tests/BuildWasmApps/testassets/SatelliteAssemblyFromProjectRef/LibraryWithResources/Class1.cs with 100% similarity]
src/mono/wasm/testassets/SatelliteAssemblyFromProjectRef/LibraryWithResources/LibraryWithResources.csproj [moved from src/tests/BuildWasmApps/testassets/SatelliteAssemblyFromProjectRef/LibraryWithResources/LibraryWithResources.csproj with 100% similarity]
src/mono/wasm/testassets/SatelliteAssemblyFromProjectRef/LibraryWithResources/resx/words.es-ES.resx [moved from src/tests/BuildWasmApps/testassets/resx/words.es-ES.resx with 100% similarity]
src/mono/wasm/testassets/SatelliteAssemblyFromProjectRef/LibraryWithResources/resx/words.ja-JP.resx [moved from src/tests/BuildWasmApps/testassets/resx/words.ja-JP.resx with 100% similarity]
src/mono/wasm/testassets/SatelliteAssemblyFromProjectRef/LibraryWithResources/resx/words.resx [moved from src/tests/BuildWasmApps/testassets/resx/words.resx with 100% similarity]
src/mono/wasm/testassets/SatelliteAssemblyInMain/resx/words.es-ES.resx [moved from src/tests/BuildWasmApps/testassets/SatelliteAssemblyInMain/resx/words.es-ES.resx with 100% similarity]
src/mono/wasm/testassets/SatelliteAssemblyInMain/resx/words.ja-JP.resx [moved from src/tests/BuildWasmApps/testassets/SatelliteAssemblyInMain/resx/words.ja-JP.resx with 100% similarity]
src/mono/wasm/testassets/SatelliteAssemblyInMain/resx/words.resx [moved from src/tests/BuildWasmApps/testassets/SatelliteAssemblyInMain/resx/words.resx with 100% similarity]
src/mono/wasm/testassets/mono.png [moved from src/tests/BuildWasmApps/testassets/mono.png with 100% similarity]
src/mono/wasm/testassets/native-libs/native-lib.o [moved from src/tests/BuildWasmApps/testassets/native-libs/native-lib.o with 100% similarity]
src/mono/wasm/testassets/native-libs/simple.c [moved from src/tests/BuildWasmApps/testassets/native-libs/simple.c with 100% similarity]
src/mono/wasm/testassets/native-libs/variadic.c [moved from src/tests/BuildWasmApps/testassets/native-libs/variadic.c with 100% similarity]
src/mono/wasm/testassets/native-libs/variadic.o [moved from src/tests/BuildWasmApps/testassets/native-libs/variadic.o with 100% similarity]
src/mono/wasm/testassets/resx/words.es-ES.resx [moved from src/tests/BuildWasmApps/testassets/SatelliteAssemblyFromProjectRef/LibraryWithResources/resx/words.es-ES.resx with 100% similarity]
src/mono/wasm/testassets/resx/words.ja-JP.resx [moved from src/tests/BuildWasmApps/testassets/SatelliteAssemblyFromProjectRef/LibraryWithResources/resx/words.ja-JP.resx with 100% similarity]
src/mono/wasm/testassets/resx/words.resx [moved from src/tests/BuildWasmApps/testassets/SatelliteAssemblyFromProjectRef/LibraryWithResources/resx/words.resx with 100% similarity]
src/tests/BuildWasmApps/Directory.Build.props [deleted file]
src/tests/BuildWasmApps/Wasm.Build.Tests/Directory.Build.props [deleted file]
src/tests/Common/dirs.proj

index e3aa63b..d00f62f 100644 (file)
@@ -74,7 +74,8 @@
 /src/mono/nuget/*Workload.Mono.Toolchain*/ @lewing @radical
 /src/mono/nuget/*MonoAOTCompiler*/ @lewing @radical
 
-/src/tests/BuildWasmApps/ @radical
+/src/mono/wasm/Wasm* @radical
+/src/mono/wasm/testassets @radical
 /src/tasks/WasmAppBuilder/ @radical
 /src/tasks/WorkloadBuildTasks/ @radical
 /src/tasks/AotCompilerTask/ @radical
index 4bb29e9..d824148 100644 (file)
@@ -21,7 +21,7 @@ Example for wasm:
                           VersionBand="$(SdkBandVersion)" />
 ```
 
-- Currently, this is used only by `src/tests/BuildWasmApps/Wasm.Build.Tests`
+- Currently, this is used only by `src/mono/wasm/Wasm.Build.Tests`
 
 ## Multiple runtime packs
 
index 6191449..75361e1 100644 (file)
@@ -74,7 +74,7 @@ jobs:
       exclude:
       # wasm runtime changes will trigger all wasm jobs anyway
       - src/mono/wasm/*
-      - src/tests/BuildWasmApps/*
+      - src/mono/wasm/*
       - eng/pipelines/common/evaluate-default-paths.yml
     - subset: installer
       include:
@@ -116,8 +116,8 @@ jobs:
     - subset: wasmbuildtests
       include:
       - src/tasks/*
-      - src/tests/BuildWasmApps/Directory.Build*
-      - src/tests/BuildWasmApps/Wasm.Build.Tests/*
+      - src/mono/wasm/Directory.Build*
+      - src/mono/wasm/Wasm.Build.Tests/*
       - src/mono/wasm/build/*
       - src/mono/wasm/host/*
       - src/mono/wasm/runtime/*
@@ -141,8 +141,8 @@ jobs:
       include:
       - src/mono/wasm/debugger/*
       - src/mono/wasm/runtime/*
-      - src/tests/BuildWasmApps/Directory.Build*
-      - src/tests/BuildWasmApps/Wasm.Debugger.Tests/*
+      - src/mono/wasm/Directory.Build*
+      - src/mono/wasm/debugger/Wasm.Debugger.Tests/*
       - eng/testing/ProvisioningVersions.props
       - src/mono/mono/*
       exclude:
index 54c4baf..96f61a1 100644 (file)
@@ -7,7 +7,7 @@ steps:
       /p:Configuration=${{ parameters.configForBuild }}
       /p:ContinuousIntegrationBuild=true
       /t:InstallWorkloadUsingArtifacts
-      $(Build.SourcesDirectory)/src/tests/BuildWasmApps/Wasm.Build.Tests/Wasm.Build.Tests.csproj
+      $(Build.SourcesDirectory)/src/mono/wasm/Wasm.Build.Tests/Wasm.Build.Tests.csproj
     displayName: "Install workload using artifacts"
 
   - script: >-
index 221bbde..cbcd14c 100644 (file)
     <ProjectReference Include="@(TrimmingTestProjects)" />
 
     <!-- wasm.build.tests are run on _WasmBuildTests job on CI, and with library tests locally. -->
-    <ProjectReference Include="$(RepoRoot)\src\tests\BuildWasmApps\Wasm.Build.Tests\*.Tests.csproj"
+    <ProjectReference Include="$(RepoRoot)\src\mono\wasm\Wasm.Build.Tests\*.Tests.csproj"
                       Exclude="@(ProjectExclusions)"
                       Condition="'$(TargetOS)' == 'Browser' and
                                     (('$(ContinuousIntegrationBuild)' == 'true' and '$(TestWasmBuildTests)' == 'true') or
                                      ('$(ContinuousIntegrationBuild)' != 'true' and '$(TestAssemblies)' == 'true'))"
                       BuildInParallel="false" />
 
-    <ProjectReference Include="$(RepoRoot)\src\tests\BuildWasmApps\Wasm.Debugger.Tests\*.Tests.csproj"
+    <ProjectReference Include="$(RepoRoot)\src\mono\wasm\debugger\Wasm.Debugger.Tests\*.Tests.csproj"
                       Exclude="@(ProjectExclusions)"
                       Condition="'$(TargetOS)' == 'Browser' and
                                     (('$(ContinuousIntegrationBuild)' == 'true' and '$(TestWasmDebuggerTests)' == 'true') or
index 151a7d9..10a5469 100644 (file)
@@ -97,7 +97,7 @@ run-tests-%:
        EMSDK_PATH=$(EMSDK_PATH) PATH="$(JSVU):$(PATH)" $(DOTNET) build $(TOP)/src/libraries/$*/tests/ /t:Test $(_MSBUILD_WASM_BUILD_ARGS) $(MSBUILD_ARGS)
 
 run-build-tests:
-       PATH="$(JSVU):$(PATH)" $(DOTNET) build $(TOP)/src/tests/BuildWasmApps/Wasm.Build.Tests/ /t:Test $(_MSBUILD_WASM_BUILD_ARGS) $(MSBUILD_ARGS)
+       PATH="$(JSVU):$(PATH)" $(DOTNET) build $(TOP)/src/mono/wasm//Wasm.Build.Tests/ /t:Test $(_MSBUILD_WASM_BUILD_ARGS) $(MSBUILD_ARGS)
 
 run-browser-tests-%:
        PATH="$(GECKODRIVER):$(CHROMEDRIVER):$(PATH)" XHARNESS_COMMAND="test-browser --browser=$(XHARNESS_BROWSER)" $(DOTNET) build $(TOP)/src/libraries/$*/tests/ /t:Test $(_MSBUILD_WASM_BUILD_ARGS) $(MSBUILD_ARGS)
@@ -105,7 +105,7 @@ run-browser-tests-%:
 build-debugger-tests-helix:
        $(DOTNET) build -restore -bl:$(TOP)/artifacts/log/$(CONFIG)/Wasm.Debugger.Tests.binlog \
        /p:ContinuousIntegrationBuild=true /p:ArchiveTests=true \
-       $(TOP)/src/tests/BuildWasmApps/Wasm.Debugger.Tests/Wasm.Debugger.Tests.csproj \
+       $(TOP)/src/mono/wasm/debugger/Wasm.Debugger.Tests/Wasm.Debugger.Tests.csproj \
        $(_MSBUILD_WASM_BUILD_ARGS) $(MSBUILD_ARGS)
 
 submit-debugger-tests-helix: build-debugger-tests-helix
diff --git a/src/mono/wasm/Wasm.Build.Tests/Directory.Build.props b/src/mono/wasm/Wasm.Build.Tests/Directory.Build.props
new file mode 100644 (file)
index 0000000..dd08eb4
--- /dev/null
@@ -0,0 +1,10 @@
+<Project>
+  <PropertyGroup>
+    <!-- needs to be set early -->
+    <Scenario>BuildWasmApps</Scenario>
+    <IsTestProject>true</IsTestProject>
+    <AssemblyBeingTested>Wasm.Build.Tests</AssemblyBeingTested>
+  </PropertyGroup>
+
+  <Import Project="..\..\..\libraries\Directory.Build.props" />
+</Project>
@@ -1,5 +1,5 @@
 <Project>
-  <Import Project="..\..\libraries\Directory.Build.targets" />
+  <Import Project="..\..\..\libraries\Directory.Build.targets" />
 
   <PropertyGroup>
     <BundleDir>$(OutDir)</BundleDir>
@@ -13,7 +13,7 @@ being generated.
 - Running:
 
 Linux/macOS: `$ make -C src/mono/wasm run-build-tests`
-Windows: `.\dotnet.cmd build .\src\tests\BuildWasmApps\Wasm.Build.Tests\Wasm.Build.Tests.csproj -c Release -t:Test -p:TargetOS=Browser -p:TargetArchitecture=wasm`
+Windows: `.\dotnet.cmd build .\src\mono\wasm\BuildWasmApps\Wasm.Build.Tests\Wasm.Build.Tests.csproj -c Release -t:Test -p:TargetOS=Browser -p:TargetArchitecture=wasm`
 
 - Specific tests can be run via `XUnitClassName`, and `XUnitMethodName`
   - eg. `XUnitClassName=Wasm.Build.Tests.BlazorWasmTests`
index 1881223..2b4e7be 100644 (file)
@@ -26,7 +26,7 @@
   <ItemGroup>
     <ProjectReference Include="..\BrowserDebugHost\BrowserDebugHost.csproj" />
     <ProjectReference Include="..\BrowserDebugProxy\BrowserDebugProxy.csproj" />
-    <ProjectReference Include="..\tests\debugger-test\debugger-test.csproj" ReferenceOutputAssembly="false" Private="false" />
+    <ProjectReference Include="..\tests\debugger-test\debugger-test.csproj" AdditionalProperties="RuntimeConfiguration=Release" ReferenceOutputAssembly="false" Private="false" />
 
     <PackageReference Include="Serilog.Extensions.Logging.File" Version="2.0.0" />
     <!-- needed for ConditionalFact etc -->
index dad724c..938e8c0 100644 (file)
@@ -3,3 +3,8 @@
 ## Debug proxy
 
 - Protocol messages are truncated when logged, to 64k, by default. But this can be changed by setting `WASM_DONT_TRUNCATE_LOG_MESSAGES=1`.
+
+## Projects
+
+- `DebuggerTestSuite` - project with all the tests, and the test harness
+- `Wasm.Debugger.Tests` - a wrapper project to fit in the global build
diff --git a/src/mono/wasm/debugger/Wasm.Debugger.Tests/Directory.Build.props b/src/mono/wasm/debugger/Wasm.Debugger.Tests/Directory.Build.props
new file mode 100644 (file)
index 0000000..0909239
--- /dev/null
@@ -0,0 +1,7 @@
+<Project>
+  <PropertyGroup>
+    <IsTestProject>true</IsTestProject>
+  </PropertyGroup>
+
+  <Import Project="..\..\..\..\libraries\Directory.Build.props" />
+</Project>
diff --git a/src/mono/wasm/debugger/Wasm.Debugger.Tests/Directory.Build.targets b/src/mono/wasm/debugger/Wasm.Debugger.Tests/Directory.Build.targets
new file mode 100644 (file)
index 0000000..be4716c
--- /dev/null
@@ -0,0 +1,9 @@
+<Project>
+  <Import Project="..\..\..\..\libraries\Directory.Build.targets" />
+
+  <PropertyGroup>
+    <BundleDir>$(OutDir)</BundleDir>
+    <RunScriptOutputPath  Condition="'$(OS)' != 'Windows_NT'">$(OutDir)\RunTests.sh</RunScriptOutputPath>
+    <RunScriptOutputPath  Condition="'$(OS)' == 'Windows_NT'">$(OutDir)\RunTests.cmd</RunScriptOutputPath>
+  </PropertyGroup>
+</Project>
@@ -24,7 +24,7 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <ProjectReference Include="$(RepoRoot)src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestSuite.csproj"
+    <ProjectReference Include="../DebuggerTestSuite/DebuggerTestSuite.csproj"
                       ReferenceOutputAssembly="false"
                       Private="false"
                       GlobalPropertiesToRemove="TargetFramework;TargetFrameworks;Configuration;TargetOS;TargetArchitecture"
index 5b120f1..b6347fe 100644 (file)
@@ -37,6 +37,6 @@ Some other places that may need to be modified include:
 * `eng/liveBuilds.targets`
 * `src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.prop`
 * [`../../build/WasmApp.targets`](../../build/WasmApp.targets)
-* `src/tests/BuildWasmApps/Wasm.Build.Tests/BuildTestBase.cs`
+* `src/mono/wasm//Wasm.Build.Tests/BuildTestBase.cs`
 * etc
 
index 4ac6e4e..63ad36c 100755 (executable)
@@ -9,7 +9,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WasmAppBuilder", "..\..\..\
 EndProject
 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MonoAOTCompiler", "..\..\..\tasks\AotCompilerTask\MonoAOTCompiler.csproj", "{A9C02284-0387-42E7-BF78-47DF13656D5E}"
 EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wasm.Build.Tests", "..\..\..\tests\BuildWasmApps\Wasm.Build.Tests\Wasm.Build.Tests.csproj", "{94E18644-B0E5-4DBB-9CE4-EA1515ACE4C2}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wasm.Build.Tests", "..\Wasm.Build.Tests\Wasm.Build.Tests.csproj", "{94E18644-B0E5-4DBB-9CE4-EA1515ACE4C2}"
 EndProject
 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DebuggerTestSuite", "..\debugger\DebuggerTestSuite\DebuggerTestSuite.csproj", "{4C0EE027-FC30-4167-B2CF-A6D18F00E08F}"
 EndProject
diff --git a/src/tests/BuildWasmApps/Directory.Build.props b/src/tests/BuildWasmApps/Directory.Build.props
deleted file mode 100644 (file)
index a7a271a..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<Project>
-  <Import Project="..\..\libraries\Directory.Build.props" />
-</Project>
diff --git a/src/tests/BuildWasmApps/Wasm.Build.Tests/Directory.Build.props b/src/tests/BuildWasmApps/Wasm.Build.Tests/Directory.Build.props
deleted file mode 100644 (file)
index a48db59..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<Project>
-  <PropertyGroup>
-    <!-- needs to be set early -->
-    <Scenario>BuildWasmApps</Scenario>
-  </PropertyGroup>
-
-  <Import Project="..\Directory.Build.props" />
-</Project>
index 1ead56f..2233c07 100644 (file)
@@ -10,7 +10,6 @@
       <DisabledProjects Include="$(TestRoot)*\**\cs_template.csproj" />
       <DisabledProjects Include="$(TestRoot)Common\**\*.*proj" />
       <DisabledProjects Include="$(TestRoot)FunctionalTests\**\*.csproj" /> <!-- They need to be isolated from the existing setup -->
-      <DisabledProjects Include="$(TestRoot)BuildWasmApps\**\*.csproj" /> <!-- built and run with libraries -->
       <DisabledProjects Include="$(TestRoot)GC\Performance\Framework\GCPerfTestFramework.csproj" />
       <DisabledProjects Include="$(TestRoot)Loader\classloader\StaticVirtualMethods\**\generatetest.csproj" /> <!-- test generators -->
       <DisabledProjects Include="$(TestRoot)Performance\Scenario\JitBench\unofficial_dotnet\JitBench.csproj" /> <!-- no official build support for SDK-style netcoreapp2.0 projects -->