Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 5 additions & 1 deletion src/ext/Bal/bal_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<ProjectReference Include="test\examples\examples.proj" />

<ProjectReference Include="test\WixToolsetTest.BootstrapperApplications\WixToolsetTest.BootstrapperApplications.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.BootstrapperApplications\WixToolsetTest.BootstrapperApplications.csproj" />

<!--
Currently there are no unskipped unit tests in this project. Should that change,
Expand All @@ -41,4 +41,8 @@
<Delete Files="$(ArtifactsFolder)WixToolset.BootstrapperApplications.wixext.*.nupkg" />
<Delete Files="$(ArtifactsFolder)WixToolset.WixStandardBootstrapperApplicationFunctionApi.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.BootstrapperApplications\WixToolsetTest.BootstrapperApplications.csproj" Targets="Test" />
</Target>
</Project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// 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.

using Microsoft.VisualStudio.TestTools.UnitTesting;

[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

namespace WixToolsetTest.BootstrapperApplications
{
using System;
Expand Down
6 changes: 5 additions & 1 deletion src/ext/ComPlus/complus_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="test\WixToolsetTest.ComPlus\WixToolsetTest.ComPlus.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.ComPlus\WixToolsetTest.ComPlus.csproj" />
<ProjectReference Include="wixext\WixToolset.ComPlus.wixext.csproj" Targets="Pack" Properties="NoBuild=true" />
</ItemGroup>

Expand All @@ -14,4 +14,8 @@

<Delete Files="$(ArtifactsFolder)WixToolset.ComPlus.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.ComPlus\WixToolsetTest.ComPlus.csproj" Targets="Test" />
</Target>
</Project>
6 changes: 5 additions & 1 deletion src/ext/Dependency/dependency_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="test\WixToolsetTest.Dependency\WixToolsetTest.Dependency.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.Dependency\WixToolsetTest.Dependency.csproj" />
<ProjectReference Include="wixext\WixToolset.Dependency.wixext.csproj" Targets="Pack" Properties="NoBuild=true" />
</ItemGroup>

Expand All @@ -14,4 +14,8 @@

<Delete Files="$(ArtifactsFolder)WixToolset.Dependency.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.Dependency\WixToolsetTest.Dependency.csproj" Targets="Test" />
</Target>
</Project>
6 changes: 5 additions & 1 deletion src/ext/DirectX/directx_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="test\WixToolsetTest.DirectX\WixToolsetTest.DirectX.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.DirectX\WixToolsetTest.DirectX.csproj" />
<ProjectReference Include="wixext\WixToolset.DirectX.wixext.csproj" Targets="Pack" Properties="NoBuild=true" />
</ItemGroup>

Expand All @@ -14,4 +14,8 @@

<Delete Files="$(ArtifactsFolder)WixToolset.DirectX.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.DirectX\WixToolsetTest.DirectX.csproj" Targets="Test" />
</Target>
</Project>
6 changes: 5 additions & 1 deletion src/ext/Firewall/firewall_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="test\WixToolsetTest.Firewall\WixToolsetTest.Firewall.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.Firewall\WixToolsetTest.Firewall.csproj" />
<ProjectReference Include="wixext\WixToolset.Firewall.wixext.csproj" Targets="Pack" Properties="NoBuild=true" />
</ItemGroup>

Expand All @@ -14,4 +14,8 @@

<Delete Files="$(ArtifactsFolder)WixToolset.Firewall.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.Firewall\WixToolsetTest.Firewall.csproj" Targets="Test" />
</Target>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
// 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.

using Microsoft.VisualStudio.TestTools.UnitTesting;

[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

namespace WixToolsetTest.Firewall
{
using System;
using System.Data;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -687,8 +692,9 @@ private static AttributeVerifier BuildAndDecompileAndBuild(string nameSpace, str
var folder = TestData.Get(@"TestData", path);
var build = new Builder(folder, typeof(FirewallExtensionFactory), new[] { folder });
var output = Path.Combine(folder, $"Firewall{ruleName}.xml");
var isOfficialBuild = !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("WixOfficialBuild"));

build.BuildAndDecompileAndBuild(Build, Decompile, output, validate: true);
build.BuildAndDecompileAndBuild(Build, Decompile, output, validate: isOfficialBuild);

var doc = XDocument.Load(output);
var actual = doc.Descendants()
Expand Down
6 changes: 5 additions & 1 deletion src/ext/Http/http_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="test\WixToolsetTest.Http\WixToolsetTest.Http.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.Http\WixToolsetTest.Http.csproj" />
<ProjectReference Include="wixext\WixToolset.Http.wixext.csproj" Targets="Pack" Properties="NoBuild=true" />
</ItemGroup>

Expand All @@ -14,4 +14,8 @@

<Delete Files="$(ArtifactsFolder)WixToolset.Http.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.Http\WixToolsetTest.Http.csproj" Targets="Test" />
</Target>
</Project>
4 changes: 4 additions & 0 deletions src/ext/Http/test/WixToolsetTest.Http/HttpExtensionFixture.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// 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.

using Microsoft.VisualStudio.TestTools.UnitTesting;

[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

namespace WixToolsetTest.Http
{
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
6 changes: 5 additions & 1 deletion src/ext/Iis/iis_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="test\WixToolsetTest.Iis\WixToolsetTest.Iis.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.Iis\WixToolsetTest.Iis.csproj" />
<ProjectReference Include="wixext\WixToolset.Iis.wixext.csproj" Targets="Pack" Properties="NoBuild=true" />
</ItemGroup>

Expand All @@ -14,4 +14,8 @@

<Delete Files="$(ArtifactsFolder)WixToolset.Iis.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.Iis\WixToolsetTest.Iis.csproj" Targets="Test" />
</Target>
</Project>
6 changes: 5 additions & 1 deletion src/ext/Msmq/msmq_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="test\WixToolsetTest.Msmq\WixToolsetTest.Msmq.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.Msmq\WixToolsetTest.Msmq.csproj" />
<ProjectReference Include="wixext\WixToolset.Msmq.wixext.csproj" Targets="Pack" Properties="NoBuild=true" />
</ItemGroup>

Expand All @@ -14,4 +14,8 @@

<Delete Files="$(ArtifactsFolder)WixToolset.Msmq.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.Msmq\WixToolsetTest.Msmq.csproj" Targets="Test" />
</Target>
</Project>
6 changes: 5 additions & 1 deletion src/ext/NetFx/netfx_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="wixlib\netfx.wixproj" />
<ProjectReference Include="test\WixToolsetTest.Netfx\WixToolsetTest.Netfx.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.Netfx\WixToolsetTest.Netfx.csproj" />
<ProjectReference Include="wixext\WixToolset.Netfx.wixext.csproj" Targets="Pack" Properties="NoBuild=true" />
</ItemGroup>

Expand All @@ -23,4 +23,8 @@

<Delete Files="$(ArtifactsFolder)WixToolset.NetFx.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.Netfx\WixToolsetTest.Netfx.csproj" Targets="Test" />
</Target>
</Project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// 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.

using Microsoft.VisualStudio.TestTools.UnitTesting;

[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

namespace WixToolsetTest.Netfx
{
using System.IO;
Expand Down
6 changes: 5 additions & 1 deletion src/ext/PowerShell/powershell_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="test\WixToolsetTest.PowerShell\WixToolsetTest.Powershell.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.PowerShell\WixToolsetTest.Powershell.csproj" />
<ProjectReference Include="wixext\WixToolset.PowerShell.wixext.csproj" Targets="Pack" Properties="NoBuild=true" />
</ItemGroup>

Expand All @@ -14,4 +14,8 @@

<Delete Files="$(ArtifactsFolder)WixToolset.PowerShell.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.PowerShell\WixToolsetTest.Powershell.csproj" Targets="Test" />
</Target>
</Project>
6 changes: 5 additions & 1 deletion src/ext/Sql/sql_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="test\WixToolsetTest.Sql\WixToolsetTest.Sql.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.Sql\WixToolsetTest.Sql.csproj" />
<ProjectReference Include="wixext\WixToolset.Sql.wixext.csproj" Targets="Pack" Properties="NoBuild=true" />
</ItemGroup>

Expand All @@ -14,4 +14,8 @@

<Delete Files="$(ArtifactsFolder)WixToolset.Sql.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.Sql\WixToolsetTest.Sql.csproj" Targets="Test" />
</Target>
</Project>
4 changes: 4 additions & 0 deletions src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// 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.

using Microsoft.VisualStudio.TestTools.UnitTesting;

[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

namespace WixToolsetTest.UI
{
using System.IO;
Expand Down
6 changes: 5 additions & 1 deletion src/ext/UI/ui_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="test\WixToolsetTest.UI\WixToolsetTest.UI.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.UI\WixToolsetTest.UI.csproj" />
<ProjectReference Include="wixext\WixToolset.UI.wixext.csproj" Targets="Pack" Properties="NoBuild=true" />
</ItemGroup>

Expand All @@ -14,4 +14,8 @@

<Delete Files="$(ArtifactsFolder)WixToolset.UI.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.UI\WixToolsetTest.UI.csproj" Targets="Test" />
</Target>
</Project>
7 changes: 5 additions & 2 deletions src/ext/Util/test/WixToolsetTest.Util/UtilExtensionFixture.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
// 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.

using Microsoft.VisualStudio.TestTools.UnitTesting;

[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

namespace WixToolsetTest.Util
{
using System;
using System.IO;
using System.Linq;
using System.Xml;
using System.Xml.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using WixInternal.MSTestSupport;
using WixInternal.Core.MSTestPackage;
using WixInternal.MSTestSupport;
using WixToolset.Util;

[TestClass]
Expand Down
6 changes: 5 additions & 1 deletion src/ext/Util/util_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="test\WixToolsetTest.Util\WixToolsetTest.Util.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.Util\WixToolsetTest.Util.csproj" />
<ProjectReference Include="wixext\WixToolset.Util.wixext.csproj" Targets="Pack" Properties="NoBuild=true" />
</ItemGroup>

Expand All @@ -14,4 +14,8 @@

<Delete Files="$(ArtifactsFolder)WixToolset.Util.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.Util\WixToolsetTest.Util.csproj" Targets="Test" />
</Target>
</Project>
6 changes: 5 additions & 1 deletion src/ext/VisualStudio/visualstudio_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Project Sdk="Microsoft.Build.Traversal">
<ItemGroup>
<ProjectReference Include="test\WixToolsetTest.VisualStudio\WixToolsetTest.VisualStudio.csproj" Targets="Test" />
<ProjectReference Include="test\WixToolsetTest.VisualStudio\WixToolsetTest.VisualStudio.csproj" />
<ProjectReference Include="wixext\WixToolset.VisualStudio.wixext.csproj" Targets="Pack" Properties="NoBuild=true" />
</ItemGroup>

Expand All @@ -14,4 +14,8 @@

<Delete Files="$(ArtifactsFolder)WixToolset.VisualStudio.wixext.*.nupkg" />
</Target>

<Target Name="WixTest">
<MSBuild Projects="test\WixToolsetTest.VisualStudio\WixToolsetTest.VisualStudio.csproj" Targets="Test" />
</Target>
</Project>
21 changes: 18 additions & 3 deletions src/ext/ext_t.proj
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,33 @@
<ProjectReference Include="Util\util_t.proj" BuildInParallel="false" Targets="Restore;Build" />
<ProjectReference Include="Bal\bal_t.proj" BuildInParallel="false" Targets="Restore;Build" />

<ProjectReference Include="NetFx\netfx_t.proj" BuildInParallel="false" Targets="Restore;Build" />
<ProjectReference Include="Firewall\firewall_t.proj" Targets="Restore;Build" />
<ProjectReference Include="UI\ui_t.proj" Targets="Restore;Build" />
<ProjectReference Include="ComPlus\complus_t.proj" Targets="Restore;Build" />
<ProjectReference Include="Dependency\dependency_t.proj" Targets="Restore;Build" />
<ProjectReference Include="DirectX\directx_t.proj" Targets="Restore;Build" />
<ProjectReference Include="Firewall\firewall_t.proj" Targets="Restore;Build" />
<ProjectReference Include="Http\http_t.proj" Targets="Restore;Build" />
<ProjectReference Include="Iis\iis_t.proj" Targets="Restore;Build" />
<ProjectReference Include="Msmq\msmq_t.proj" Targets="Restore;Build" />
<ProjectReference Include="NetFx\netfx_t.proj" Targets="Restore;Build" />
<ProjectReference Include="PowerShell\powershell_t.proj" Targets="Restore;Build" />
<ProjectReference Include="Sql\sql_t.proj" Targets="Restore;Build" />
<ProjectReference Include="UI\ui_t.proj" Targets="Restore;Build" />
<ProjectReference Include="VisualStudio\visualstudio_t.proj" Targets="Restore;Build" />

<ProjectReference Include="Firewall\firewall_t.proj" Targets="WixTest" />
<ProjectReference Include="UI\ui_t.proj" Targets="WixTest" />
<ProjectReference Include="Util\util_t.proj" Targets="WixTest" />
<ProjectReference Include="Bal\bal_t.proj" Targets="WixTest" />
<ProjectReference Include="ComPlus\complus_t.proj" Targets="WixTest" />
<ProjectReference Include="Dependency\dependency_t.proj" Targets="WixTest" />
<ProjectReference Include="DirectX\directx_t.proj" Targets="WixTest" />
<ProjectReference Include="Http\http_t.proj" Targets="WixTest" />
<ProjectReference Include="Iis\iis_t.proj" Targets="WixTest" />
<ProjectReference Include="Msmq\msmq_t.proj" Targets="WixTest" />
<ProjectReference Include="NetFx\netfx_t.proj" Targets="WixTest" />
<ProjectReference Include="PowerShell\powershell_t.proj" Targets="WixTest" />
<ProjectReference Include="Sql\sql_t.proj" Targets="WixTest" />
<ProjectReference Include="VisualStudio\visualstudio_t.proj" Targets="WixTest" />

</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions src/wix/test/WixToolsetTest.Sdk/MsbuildFixture.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// 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.

using Microsoft.VisualStudio.TestTools.UnitTesting;

[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

namespace WixToolsetTest.Sdk
{
using System;
Expand Down