/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
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
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:
- 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/*
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:
/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: >-
<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
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)
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
--- /dev/null
+<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>
<Project>
- <Import Project="..\..\libraries\Directory.Build.targets" />
+ <Import Project="..\..\..\libraries\Directory.Build.targets" />
<PropertyGroup>
<BundleDir>$(OutDir)</BundleDir>
- 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`
<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 -->
## 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
--- /dev/null
+<Project>
+ <PropertyGroup>
+ <IsTestProject>true</IsTestProject>
+ </PropertyGroup>
+
+ <Import Project="..\..\..\..\libraries\Directory.Build.props" />
+</Project>
--- /dev/null
+<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>
</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"
* `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
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
+++ /dev/null
-<Project>
- <Import Project="..\..\libraries\Directory.Build.props" />
-</Project>
+++ /dev/null
-<Project>
- <PropertyGroup>
- <!-- needs to be set early -->
- <Scenario>BuildWasmApps</Scenario>
- </PropertyGroup>
-
- <Import Project="..\Directory.Build.props" />
-</Project>
<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 -->