aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Firewall/test
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2025-07-19 22:25:25 -0400
committerBob Arnson <github@bobs.org>2025-07-21 13:38:30 -0400
commit65e68bcfaf4b0ef9796cad4d5a470b3b3e72032f (patch)
treeb4a39ab7bcbb1f66ce0dee41dc567b66c85e83ad /src/ext/Firewall/test
parentbaf02e973f152ddb7d74d90f505cafc0be17c4fd (diff)
downloadwix-65e68bcfaf4b0ef9796cad4d5a470b3b3e72032f.tar.gz
wix-65e68bcfaf4b0ef9796cad4d5a470b3b3e72032f.tar.bz2
wix-65e68bcfaf4b0ef9796cad4d5a470b3b3e72032f.zip
Embiggen build perf.
- 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.
Diffstat (limited to 'src/ext/Firewall/test')
-rw-r--r--src/ext/Firewall/test/WixToolsetTest.Firewall/FirewallExtensionFixture.cs8
1 files changed, 7 insertions, 1 deletions
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
3using Microsoft.VisualStudio.TestTools.UnitTesting;
4
5[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]
6
3namespace WixToolsetTest.Firewall 7namespace 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()