diff options
author | Bob Arnson <bob@firegiant.com> | 2025-07-19 22:25:25 -0400 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2025-07-20 20:10:41 -0400 |
commit | a4a0818ff7335b5c86b590d1f6e990671c2ef387 (patch) | |
tree | b4a39ab7bcbb1f66ce0dee41dc567b66c85e83ad | |
parent | baf02e973f152ddb7d74d90f505cafc0be17c4fd (diff) | |
download | wix-bob/WixTestTargets.tar.gz wix-bob/WixTestTargets.tar.bz2 wix-bob/WixTestTargets.zip |
Embiggen build perf.bob/WixTestTargets
- Move ext tests to targets for better MSBuild scheduling.
- Parallelize long-running tests.
- Disable Firewall ICEs for dev builds; they're redundant with
round-tripping and ICEs are mutex'd to make them painfully serial.
22 files changed, 120 insertions, 20 deletions
diff --git a/src/ext/Bal/bal_t.proj b/src/ext/Bal/bal_t.proj index bb8d44a2..80da207d 100644 --- a/src/ext/Bal/bal_t.proj +++ b/src/ext/Bal/bal_t.proj | |||
@@ -18,7 +18,7 @@ | |||
18 | 18 | ||
19 | <ProjectReference Include="test\examples\examples.proj" /> | 19 | <ProjectReference Include="test\examples\examples.proj" /> |
20 | 20 | ||
21 | <ProjectReference Include="test\WixToolsetTest.BootstrapperApplications\WixToolsetTest.BootstrapperApplications.csproj" Targets="Test" /> | 21 | <ProjectReference Include="test\WixToolsetTest.BootstrapperApplications\WixToolsetTest.BootstrapperApplications.csproj" /> |
22 | 22 | ||
23 | <!-- | 23 | <!-- |
24 | Currently there are no unskipped unit tests in this project. Should that change, | 24 | Currently there are no unskipped unit tests in this project. Should that change, |
@@ -41,4 +41,8 @@ | |||
41 | <Delete Files="$(ArtifactsFolder)WixToolset.BootstrapperApplications.wixext.*.nupkg" /> | 41 | <Delete Files="$(ArtifactsFolder)WixToolset.BootstrapperApplications.wixext.*.nupkg" /> |
42 | <Delete Files="$(ArtifactsFolder)WixToolset.WixStandardBootstrapperApplicationFunctionApi.wixext.*.nupkg" /> | 42 | <Delete Files="$(ArtifactsFolder)WixToolset.WixStandardBootstrapperApplicationFunctionApi.wixext.*.nupkg" /> |
43 | </Target> | 43 | </Target> |
44 | |||
45 | <Target Name="WixTest"> | ||
46 | <MSBuild Projects="test\WixToolsetTest.BootstrapperApplications\WixToolsetTest.BootstrapperApplications.csproj" Targets="Test" /> | ||
47 | </Target> | ||
44 | </Project> | 48 | </Project> |
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/BalExtensionFixture.cs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/BalExtensionFixture.cs index 6e24ad72..07d3dacb 100644 --- a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/BalExtensionFixture.cs +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/BalExtensionFixture.cs | |||
@@ -1,5 +1,9 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | 2 | ||
3 | using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
4 | |||
5 | [assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] | ||
6 | |||
3 | namespace WixToolsetTest.BootstrapperApplications | 7 | namespace WixToolsetTest.BootstrapperApplications |
4 | { | 8 | { |
5 | using System; | 9 | using System; |
diff --git a/src/ext/ComPlus/complus_t.proj b/src/ext/ComPlus/complus_t.proj index 8f187744..56f0cc99 100644 --- a/src/ext/ComPlus/complus_t.proj +++ b/src/ext/ComPlus/complus_t.proj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="test\WixToolsetTest.ComPlus\WixToolsetTest.ComPlus.csproj" Targets="Test" /> | 6 | <ProjectReference Include="test\WixToolsetTest.ComPlus\WixToolsetTest.ComPlus.csproj" /> |
7 | <ProjectReference Include="wixext\WixToolset.ComPlus.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 7 | <ProjectReference Include="wixext\WixToolset.ComPlus.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
8 | </ItemGroup> | 8 | </ItemGroup> |
9 | 9 | ||
@@ -14,4 +14,8 @@ | |||
14 | 14 | ||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.ComPlus.wixext.*.nupkg" /> | 15 | <Delete Files="$(ArtifactsFolder)WixToolset.ComPlus.wixext.*.nupkg" /> |
16 | </Target> | 16 | </Target> |
17 | |||
18 | <Target Name="WixTest"> | ||
19 | <MSBuild Projects="test\WixToolsetTest.ComPlus\WixToolsetTest.ComPlus.csproj" Targets="Test" /> | ||
20 | </Target> | ||
17 | </Project> | 21 | </Project> |
diff --git a/src/ext/Dependency/dependency_t.proj b/src/ext/Dependency/dependency_t.proj index 569ddd17..c4293806 100644 --- a/src/ext/Dependency/dependency_t.proj +++ b/src/ext/Dependency/dependency_t.proj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="test\WixToolsetTest.Dependency\WixToolsetTest.Dependency.csproj" Targets="Test" /> | 6 | <ProjectReference Include="test\WixToolsetTest.Dependency\WixToolsetTest.Dependency.csproj" /> |
7 | <ProjectReference Include="wixext\WixToolset.Dependency.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 7 | <ProjectReference Include="wixext\WixToolset.Dependency.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
8 | </ItemGroup> | 8 | </ItemGroup> |
9 | 9 | ||
@@ -14,4 +14,8 @@ | |||
14 | 14 | ||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.Dependency.wixext.*.nupkg" /> | 15 | <Delete Files="$(ArtifactsFolder)WixToolset.Dependency.wixext.*.nupkg" /> |
16 | </Target> | 16 | </Target> |
17 | |||
18 | <Target Name="WixTest"> | ||
19 | <MSBuild Projects="test\WixToolsetTest.Dependency\WixToolsetTest.Dependency.csproj" Targets="Test" /> | ||
20 | </Target> | ||
17 | </Project> | 21 | </Project> |
diff --git a/src/ext/DirectX/directx_t.proj b/src/ext/DirectX/directx_t.proj index f014465b..ff28ccb7 100644 --- a/src/ext/DirectX/directx_t.proj +++ b/src/ext/DirectX/directx_t.proj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="test\WixToolsetTest.DirectX\WixToolsetTest.DirectX.csproj" Targets="Test" /> | 6 | <ProjectReference Include="test\WixToolsetTest.DirectX\WixToolsetTest.DirectX.csproj" /> |
7 | <ProjectReference Include="wixext\WixToolset.DirectX.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 7 | <ProjectReference Include="wixext\WixToolset.DirectX.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
8 | </ItemGroup> | 8 | </ItemGroup> |
9 | 9 | ||
@@ -14,4 +14,8 @@ | |||
14 | 14 | ||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.DirectX.wixext.*.nupkg" /> | 15 | <Delete Files="$(ArtifactsFolder)WixToolset.DirectX.wixext.*.nupkg" /> |
16 | </Target> | 16 | </Target> |
17 | |||
18 | <Target Name="WixTest"> | ||
19 | <MSBuild Projects="test\WixToolsetTest.DirectX\WixToolsetTest.DirectX.csproj" Targets="Test" /> | ||
20 | </Target> | ||
17 | </Project> | 21 | </Project> |
diff --git a/src/ext/Firewall/firewall_t.proj b/src/ext/Firewall/firewall_t.proj index 72128805..f2cee0a0 100644 --- a/src/ext/Firewall/firewall_t.proj +++ b/src/ext/Firewall/firewall_t.proj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="test\WixToolsetTest.Firewall\WixToolsetTest.Firewall.csproj" Targets="Test" /> | 6 | <ProjectReference Include="test\WixToolsetTest.Firewall\WixToolsetTest.Firewall.csproj" /> |
7 | <ProjectReference Include="wixext\WixToolset.Firewall.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 7 | <ProjectReference Include="wixext\WixToolset.Firewall.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
8 | </ItemGroup> | 8 | </ItemGroup> |
9 | 9 | ||
@@ -14,4 +14,8 @@ | |||
14 | 14 | ||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.Firewall.wixext.*.nupkg" /> | 15 | <Delete Files="$(ArtifactsFolder)WixToolset.Firewall.wixext.*.nupkg" /> |
16 | </Target> | 16 | </Target> |
17 | |||
18 | <Target Name="WixTest"> | ||
19 | <MSBuild Projects="test\WixToolsetTest.Firewall\WixToolsetTest.Firewall.csproj" Targets="Test" /> | ||
20 | </Target> | ||
17 | </Project> | 21 | </Project> |
diff --git a/src/ext/Firewall/test/WixToolsetTest.Firewall/FirewallExtensionFixture.cs b/src/ext/Firewall/test/WixToolsetTest.Firewall/FirewallExtensionFixture.cs index 9b4cb2b1..3be8af0e 100644 --- a/src/ext/Firewall/test/WixToolsetTest.Firewall/FirewallExtensionFixture.cs +++ b/src/ext/Firewall/test/WixToolsetTest.Firewall/FirewallExtensionFixture.cs | |||
@@ -1,7 +1,12 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | 2 | ||
3 | using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
4 | |||
5 | [assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] | ||
6 | |||
3 | namespace WixToolsetTest.Firewall | 7 | namespace WixToolsetTest.Firewall |
4 | { | 8 | { |
9 | using System; | ||
5 | using System.Data; | 10 | using System.Data; |
6 | using System.IO; | 11 | using System.IO; |
7 | using System.Linq; | 12 | using System.Linq; |
@@ -687,8 +692,9 @@ namespace WixToolsetTest.Firewall | |||
687 | var folder = TestData.Get(@"TestData", path); | 692 | var folder = TestData.Get(@"TestData", path); |
688 | var build = new Builder(folder, typeof(FirewallExtensionFactory), new[] { folder }); | 693 | var build = new Builder(folder, typeof(FirewallExtensionFactory), new[] { folder }); |
689 | var output = Path.Combine(folder, $"Firewall{ruleName}.xml"); | 694 | var output = Path.Combine(folder, $"Firewall{ruleName}.xml"); |
695 | var isOfficialBuild = !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("WixOfficialBuild")); | ||
690 | 696 | ||
691 | build.BuildAndDecompileAndBuild(Build, Decompile, output, validate: true); | 697 | build.BuildAndDecompileAndBuild(Build, Decompile, output, validate: isOfficialBuild); |
692 | 698 | ||
693 | var doc = XDocument.Load(output); | 699 | var doc = XDocument.Load(output); |
694 | var actual = doc.Descendants() | 700 | var actual = doc.Descendants() |
diff --git a/src/ext/Http/http_t.proj b/src/ext/Http/http_t.proj index ddcb64b4..b3de433f 100644 --- a/src/ext/Http/http_t.proj +++ b/src/ext/Http/http_t.proj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="test\WixToolsetTest.Http\WixToolsetTest.Http.csproj" Targets="Test" /> | 6 | <ProjectReference Include="test\WixToolsetTest.Http\WixToolsetTest.Http.csproj" /> |
7 | <ProjectReference Include="wixext\WixToolset.Http.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 7 | <ProjectReference Include="wixext\WixToolset.Http.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
8 | </ItemGroup> | 8 | </ItemGroup> |
9 | 9 | ||
@@ -14,4 +14,8 @@ | |||
14 | 14 | ||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.Http.wixext.*.nupkg" /> | 15 | <Delete Files="$(ArtifactsFolder)WixToolset.Http.wixext.*.nupkg" /> |
16 | </Target> | 16 | </Target> |
17 | |||
18 | <Target Name="WixTest"> | ||
19 | <MSBuild Projects="test\WixToolsetTest.Http\WixToolsetTest.Http.csproj" Targets="Test" /> | ||
20 | </Target> | ||
17 | </Project> | 21 | </Project> |
diff --git a/src/ext/Http/test/WixToolsetTest.Http/HttpExtensionFixture.cs b/src/ext/Http/test/WixToolsetTest.Http/HttpExtensionFixture.cs index c91ce937..7dcb9086 100644 --- a/src/ext/Http/test/WixToolsetTest.Http/HttpExtensionFixture.cs +++ b/src/ext/Http/test/WixToolsetTest.Http/HttpExtensionFixture.cs | |||
@@ -1,5 +1,9 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | 2 | ||
3 | using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
4 | |||
5 | [assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] | ||
6 | |||
3 | namespace WixToolsetTest.Http | 7 | namespace WixToolsetTest.Http |
4 | { | 8 | { |
5 | using Microsoft.VisualStudio.TestTools.UnitTesting; | 9 | using Microsoft.VisualStudio.TestTools.UnitTesting; |
diff --git a/src/ext/Iis/iis_t.proj b/src/ext/Iis/iis_t.proj index 2238d785..2e05f3f1 100644 --- a/src/ext/Iis/iis_t.proj +++ b/src/ext/Iis/iis_t.proj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="test\WixToolsetTest.Iis\WixToolsetTest.Iis.csproj" Targets="Test" /> | 6 | <ProjectReference Include="test\WixToolsetTest.Iis\WixToolsetTest.Iis.csproj" /> |
7 | <ProjectReference Include="wixext\WixToolset.Iis.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 7 | <ProjectReference Include="wixext\WixToolset.Iis.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
8 | </ItemGroup> | 8 | </ItemGroup> |
9 | 9 | ||
@@ -14,4 +14,8 @@ | |||
14 | 14 | ||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.Iis.wixext.*.nupkg" /> | 15 | <Delete Files="$(ArtifactsFolder)WixToolset.Iis.wixext.*.nupkg" /> |
16 | </Target> | 16 | </Target> |
17 | |||
18 | <Target Name="WixTest"> | ||
19 | <MSBuild Projects="test\WixToolsetTest.Iis\WixToolsetTest.Iis.csproj" Targets="Test" /> | ||
20 | </Target> | ||
17 | </Project> | 21 | </Project> |
diff --git a/src/ext/Msmq/msmq_t.proj b/src/ext/Msmq/msmq_t.proj index 9eaab92f..639f7f77 100644 --- a/src/ext/Msmq/msmq_t.proj +++ b/src/ext/Msmq/msmq_t.proj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="test\WixToolsetTest.Msmq\WixToolsetTest.Msmq.csproj" Targets="Test" /> | 6 | <ProjectReference Include="test\WixToolsetTest.Msmq\WixToolsetTest.Msmq.csproj" /> |
7 | <ProjectReference Include="wixext\WixToolset.Msmq.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 7 | <ProjectReference Include="wixext\WixToolset.Msmq.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
8 | </ItemGroup> | 8 | </ItemGroup> |
9 | 9 | ||
@@ -14,4 +14,8 @@ | |||
14 | 14 | ||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.Msmq.wixext.*.nupkg" /> | 15 | <Delete Files="$(ArtifactsFolder)WixToolset.Msmq.wixext.*.nupkg" /> |
16 | </Target> | 16 | </Target> |
17 | |||
18 | <Target Name="WixTest"> | ||
19 | <MSBuild Projects="test\WixToolsetTest.Msmq\WixToolsetTest.Msmq.csproj" Targets="Test" /> | ||
20 | </Target> | ||
17 | </Project> | 21 | </Project> |
diff --git a/src/ext/NetFx/netfx_t.proj b/src/ext/NetFx/netfx_t.proj index 1c1b8a61..86996e42 100644 --- a/src/ext/NetFx/netfx_t.proj +++ b/src/ext/NetFx/netfx_t.proj | |||
@@ -4,7 +4,7 @@ | |||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="wixlib\netfx.wixproj" /> | 6 | <ProjectReference Include="wixlib\netfx.wixproj" /> |
7 | <ProjectReference Include="test\WixToolsetTest.Netfx\WixToolsetTest.Netfx.csproj" Targets="Test" /> | 7 | <ProjectReference Include="test\WixToolsetTest.Netfx\WixToolsetTest.Netfx.csproj" /> |
8 | <ProjectReference Include="wixext\WixToolset.Netfx.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 8 | <ProjectReference Include="wixext\WixToolset.Netfx.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
9 | </ItemGroup> | 9 | </ItemGroup> |
10 | 10 | ||
@@ -23,4 +23,8 @@ | |||
23 | 23 | ||
24 | <Delete Files="$(ArtifactsFolder)WixToolset.NetFx.wixext.*.nupkg" /> | 24 | <Delete Files="$(ArtifactsFolder)WixToolset.NetFx.wixext.*.nupkg" /> |
25 | </Target> | 25 | </Target> |
26 | |||
27 | <Target Name="WixTest"> | ||
28 | <MSBuild Projects="test\WixToolsetTest.Netfx\WixToolsetTest.Netfx.csproj" Targets="Test" /> | ||
29 | </Target> | ||
26 | </Project> | 30 | </Project> |
diff --git a/src/ext/NetFx/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs b/src/ext/NetFx/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs index 37f715bf..381270d4 100644 --- a/src/ext/NetFx/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs +++ b/src/ext/NetFx/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs | |||
@@ -1,5 +1,9 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | 2 | ||
3 | using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
4 | |||
5 | [assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] | ||
6 | |||
3 | namespace WixToolsetTest.Netfx | 7 | namespace WixToolsetTest.Netfx |
4 | { | 8 | { |
5 | using System.IO; | 9 | using System.IO; |
diff --git a/src/ext/PowerShell/powershell_t.proj b/src/ext/PowerShell/powershell_t.proj index a1d88013..8c12bdef 100644 --- a/src/ext/PowerShell/powershell_t.proj +++ b/src/ext/PowerShell/powershell_t.proj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="test\WixToolsetTest.PowerShell\WixToolsetTest.Powershell.csproj" Targets="Test" /> | 6 | <ProjectReference Include="test\WixToolsetTest.PowerShell\WixToolsetTest.Powershell.csproj" /> |
7 | <ProjectReference Include="wixext\WixToolset.PowerShell.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 7 | <ProjectReference Include="wixext\WixToolset.PowerShell.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
8 | </ItemGroup> | 8 | </ItemGroup> |
9 | 9 | ||
@@ -14,4 +14,8 @@ | |||
14 | 14 | ||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.PowerShell.wixext.*.nupkg" /> | 15 | <Delete Files="$(ArtifactsFolder)WixToolset.PowerShell.wixext.*.nupkg" /> |
16 | </Target> | 16 | </Target> |
17 | |||
18 | <Target Name="WixTest"> | ||
19 | <MSBuild Projects="test\WixToolsetTest.PowerShell\WixToolsetTest.Powershell.csproj" Targets="Test" /> | ||
20 | </Target> | ||
17 | </Project> | 21 | </Project> |
diff --git a/src/ext/Sql/sql_t.proj b/src/ext/Sql/sql_t.proj index 92c908d2..42450510 100644 --- a/src/ext/Sql/sql_t.proj +++ b/src/ext/Sql/sql_t.proj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="test\WixToolsetTest.Sql\WixToolsetTest.Sql.csproj" Targets="Test" /> | 6 | <ProjectReference Include="test\WixToolsetTest.Sql\WixToolsetTest.Sql.csproj" /> |
7 | <ProjectReference Include="wixext\WixToolset.Sql.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 7 | <ProjectReference Include="wixext\WixToolset.Sql.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
8 | </ItemGroup> | 8 | </ItemGroup> |
9 | 9 | ||
@@ -14,4 +14,8 @@ | |||
14 | 14 | ||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.Sql.wixext.*.nupkg" /> | 15 | <Delete Files="$(ArtifactsFolder)WixToolset.Sql.wixext.*.nupkg" /> |
16 | </Target> | 16 | </Target> |
17 | |||
18 | <Target Name="WixTest"> | ||
19 | <MSBuild Projects="test\WixToolsetTest.Sql\WixToolsetTest.Sql.csproj" Targets="Test" /> | ||
20 | </Target> | ||
17 | </Project> | 21 | </Project> |
diff --git a/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs b/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs index ae3a49be..9bc82fcf 100644 --- a/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs +++ b/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs | |||
@@ -1,5 +1,9 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | 2 | ||
3 | using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
4 | |||
5 | [assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] | ||
6 | |||
3 | namespace WixToolsetTest.UI | 7 | namespace WixToolsetTest.UI |
4 | { | 8 | { |
5 | using System.IO; | 9 | using System.IO; |
diff --git a/src/ext/UI/ui_t.proj b/src/ext/UI/ui_t.proj index 6ac63cfe..895c0323 100644 --- a/src/ext/UI/ui_t.proj +++ b/src/ext/UI/ui_t.proj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="test\WixToolsetTest.UI\WixToolsetTest.UI.csproj" Targets="Test" /> | 6 | <ProjectReference Include="test\WixToolsetTest.UI\WixToolsetTest.UI.csproj" /> |
7 | <ProjectReference Include="wixext\WixToolset.UI.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 7 | <ProjectReference Include="wixext\WixToolset.UI.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
8 | </ItemGroup> | 8 | </ItemGroup> |
9 | 9 | ||
@@ -14,4 +14,8 @@ | |||
14 | 14 | ||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.UI.wixext.*.nupkg" /> | 15 | <Delete Files="$(ArtifactsFolder)WixToolset.UI.wixext.*.nupkg" /> |
16 | </Target> | 16 | </Target> |
17 | |||
18 | <Target Name="WixTest"> | ||
19 | <MSBuild Projects="test\WixToolsetTest.UI\WixToolsetTest.UI.csproj" Targets="Test" /> | ||
20 | </Target> | ||
17 | </Project> | 21 | </Project> |
diff --git a/src/ext/Util/test/WixToolsetTest.Util/UtilExtensionFixture.cs b/src/ext/Util/test/WixToolsetTest.Util/UtilExtensionFixture.cs index 03d87e4e..bb00717f 100644 --- a/src/ext/Util/test/WixToolsetTest.Util/UtilExtensionFixture.cs +++ b/src/ext/Util/test/WixToolsetTest.Util/UtilExtensionFixture.cs | |||
@@ -1,15 +1,18 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | 2 | ||
3 | using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
4 | |||
5 | [assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] | ||
6 | |||
3 | namespace WixToolsetTest.Util | 7 | namespace WixToolsetTest.Util |
4 | { | 8 | { |
5 | using System; | ||
6 | using System.IO; | 9 | using System.IO; |
7 | using System.Linq; | 10 | using System.Linq; |
8 | using System.Xml; | 11 | using System.Xml; |
9 | using System.Xml.Linq; | 12 | using System.Xml.Linq; |
10 | using Microsoft.VisualStudio.TestTools.UnitTesting; | 13 | using Microsoft.VisualStudio.TestTools.UnitTesting; |
11 | using WixInternal.MSTestSupport; | ||
12 | using WixInternal.Core.MSTestPackage; | 14 | using WixInternal.Core.MSTestPackage; |
15 | using WixInternal.MSTestSupport; | ||
13 | using WixToolset.Util; | 16 | using WixToolset.Util; |
14 | 17 | ||
15 | [TestClass] | 18 | [TestClass] |
diff --git a/src/ext/Util/util_t.proj b/src/ext/Util/util_t.proj index 6ec63476..02be4b49 100644 --- a/src/ext/Util/util_t.proj +++ b/src/ext/Util/util_t.proj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="test\WixToolsetTest.Util\WixToolsetTest.Util.csproj" Targets="Test" /> | 6 | <ProjectReference Include="test\WixToolsetTest.Util\WixToolsetTest.Util.csproj" /> |
7 | <ProjectReference Include="wixext\WixToolset.Util.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 7 | <ProjectReference Include="wixext\WixToolset.Util.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
8 | </ItemGroup> | 8 | </ItemGroup> |
9 | 9 | ||
@@ -14,4 +14,8 @@ | |||
14 | 14 | ||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.Util.wixext.*.nupkg" /> | 15 | <Delete Files="$(ArtifactsFolder)WixToolset.Util.wixext.*.nupkg" /> |
16 | </Target> | 16 | </Target> |
17 | |||
18 | <Target Name="WixTest"> | ||
19 | <MSBuild Projects="test\WixToolsetTest.Util\WixToolsetTest.Util.csproj" Targets="Test" /> | ||
20 | </Target> | ||
17 | </Project> | 21 | </Project> |
diff --git a/src/ext/VisualStudio/visualstudio_t.proj b/src/ext/VisualStudio/visualstudio_t.proj index 9b3f5b4f..d6c101e6 100644 --- a/src/ext/VisualStudio/visualstudio_t.proj +++ b/src/ext/VisualStudio/visualstudio_t.proj | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | <Project Sdk="Microsoft.Build.Traversal"> | 4 | <Project Sdk="Microsoft.Build.Traversal"> |
5 | <ItemGroup> | 5 | <ItemGroup> |
6 | <ProjectReference Include="test\WixToolsetTest.VisualStudio\WixToolsetTest.VisualStudio.csproj" Targets="Test" /> | 6 | <ProjectReference Include="test\WixToolsetTest.VisualStudio\WixToolsetTest.VisualStudio.csproj" /> |
7 | <ProjectReference Include="wixext\WixToolset.VisualStudio.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | 7 | <ProjectReference Include="wixext\WixToolset.VisualStudio.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> |
8 | </ItemGroup> | 8 | </ItemGroup> |
9 | 9 | ||
@@ -14,4 +14,8 @@ | |||
14 | 14 | ||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.VisualStudio.wixext.*.nupkg" /> | 15 | <Delete Files="$(ArtifactsFolder)WixToolset.VisualStudio.wixext.*.nupkg" /> |
16 | </Target> | 16 | </Target> |
17 | |||
18 | <Target Name="WixTest"> | ||
19 | <MSBuild Projects="test\WixToolsetTest.VisualStudio\WixToolsetTest.VisualStudio.csproj" Targets="Test" /> | ||
20 | </Target> | ||
17 | </Project> | 21 | </Project> |
diff --git a/src/ext/ext_t.proj b/src/ext/ext_t.proj index b51f3425..f9febb2e 100644 --- a/src/ext/ext_t.proj +++ b/src/ext/ext_t.proj | |||
@@ -7,18 +7,33 @@ | |||
7 | <ProjectReference Include="Util\util_t.proj" BuildInParallel="false" Targets="Restore;Build" /> | 7 | <ProjectReference Include="Util\util_t.proj" BuildInParallel="false" Targets="Restore;Build" /> |
8 | <ProjectReference Include="Bal\bal_t.proj" BuildInParallel="false" Targets="Restore;Build" /> | 8 | <ProjectReference Include="Bal\bal_t.proj" BuildInParallel="false" Targets="Restore;Build" /> |
9 | 9 | ||
10 | <ProjectReference Include="NetFx\netfx_t.proj" BuildInParallel="false" Targets="Restore;Build" /> | 10 | <ProjectReference Include="Firewall\firewall_t.proj" Targets="Restore;Build" /> |
11 | <ProjectReference Include="UI\ui_t.proj" Targets="Restore;Build" /> | ||
11 | <ProjectReference Include="ComPlus\complus_t.proj" Targets="Restore;Build" /> | 12 | <ProjectReference Include="ComPlus\complus_t.proj" Targets="Restore;Build" /> |
12 | <ProjectReference Include="Dependency\dependency_t.proj" Targets="Restore;Build" /> | 13 | <ProjectReference Include="Dependency\dependency_t.proj" Targets="Restore;Build" /> |
13 | <ProjectReference Include="DirectX\directx_t.proj" Targets="Restore;Build" /> | 14 | <ProjectReference Include="DirectX\directx_t.proj" Targets="Restore;Build" /> |
14 | <ProjectReference Include="Firewall\firewall_t.proj" Targets="Restore;Build" /> | ||
15 | <ProjectReference Include="Http\http_t.proj" Targets="Restore;Build" /> | 15 | <ProjectReference Include="Http\http_t.proj" Targets="Restore;Build" /> |
16 | <ProjectReference Include="Iis\iis_t.proj" Targets="Restore;Build" /> | 16 | <ProjectReference Include="Iis\iis_t.proj" Targets="Restore;Build" /> |
17 | <ProjectReference Include="Msmq\msmq_t.proj" Targets="Restore;Build" /> | 17 | <ProjectReference Include="Msmq\msmq_t.proj" Targets="Restore;Build" /> |
18 | <ProjectReference Include="NetFx\netfx_t.proj" Targets="Restore;Build" /> | 18 | <ProjectReference Include="NetFx\netfx_t.proj" Targets="Restore;Build" /> |
19 | <ProjectReference Include="PowerShell\powershell_t.proj" Targets="Restore;Build" /> | 19 | <ProjectReference Include="PowerShell\powershell_t.proj" Targets="Restore;Build" /> |
20 | <ProjectReference Include="Sql\sql_t.proj" Targets="Restore;Build" /> | 20 | <ProjectReference Include="Sql\sql_t.proj" Targets="Restore;Build" /> |
21 | <ProjectReference Include="UI\ui_t.proj" Targets="Restore;Build" /> | ||
22 | <ProjectReference Include="VisualStudio\visualstudio_t.proj" Targets="Restore;Build" /> | 21 | <ProjectReference Include="VisualStudio\visualstudio_t.proj" Targets="Restore;Build" /> |
22 | |||
23 | <ProjectReference Include="Firewall\firewall_t.proj" Targets="WixTest" /> | ||
24 | <ProjectReference Include="UI\ui_t.proj" Targets="WixTest" /> | ||
25 | <ProjectReference Include="Util\util_t.proj" Targets="WixTest" /> | ||
26 | <ProjectReference Include="Bal\bal_t.proj" Targets="WixTest" /> | ||
27 | <ProjectReference Include="ComPlus\complus_t.proj" Targets="WixTest" /> | ||
28 | <ProjectReference Include="Dependency\dependency_t.proj" Targets="WixTest" /> | ||
29 | <ProjectReference Include="DirectX\directx_t.proj" Targets="WixTest" /> | ||
30 | <ProjectReference Include="Http\http_t.proj" Targets="WixTest" /> | ||
31 | <ProjectReference Include="Iis\iis_t.proj" Targets="WixTest" /> | ||
32 | <ProjectReference Include="Msmq\msmq_t.proj" Targets="WixTest" /> | ||
33 | <ProjectReference Include="NetFx\netfx_t.proj" Targets="WixTest" /> | ||
34 | <ProjectReference Include="PowerShell\powershell_t.proj" Targets="WixTest" /> | ||
35 | <ProjectReference Include="Sql\sql_t.proj" Targets="WixTest" /> | ||
36 | <ProjectReference Include="VisualStudio\visualstudio_t.proj" Targets="WixTest" /> | ||
37 | |||
23 | </ItemGroup> | 38 | </ItemGroup> |
24 | </Project> | 39 | </Project> |
diff --git a/src/wix/test/WixToolsetTest.Sdk/MsbuildFixture.cs b/src/wix/test/WixToolsetTest.Sdk/MsbuildFixture.cs index a14c8e5b..e1e2c1d7 100644 --- a/src/wix/test/WixToolsetTest.Sdk/MsbuildFixture.cs +++ b/src/wix/test/WixToolsetTest.Sdk/MsbuildFixture.cs | |||
@@ -1,5 +1,9 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | 2 | ||
3 | using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
4 | |||
5 | [assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] | ||
6 | |||
3 | namespace WixToolsetTest.Sdk | 7 | namespace WixToolsetTest.Sdk |
4 | { | 8 | { |
5 | using System; | 9 | using System; |