From 83be85cdfca822028df65558bb3ac7f22d4de228 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Wed, 1 Jul 2020 19:35:48 +1000 Subject: Add failing test for CustomAction cycle. --- .../CustomActionFixture.cs | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs (limited to 'src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs') diff --git a/src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs b/src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs new file mode 100644 index 00000000..814b5a26 --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs @@ -0,0 +1,41 @@ +// 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. + +namespace WixToolsetTest.CoreIntegration +{ + using System.IO; + using System.Linq; + using WixBuildTools.TestSupport; + using WixToolset.Core.TestPackage; + using WixToolset.Data; + using Xunit; + + public class CustomActionFixture + { + [Fact(Skip = "Test demonstrates failure")] + public void PopulatesCustomActionTable() + { + var folder = TestData.Get(@"TestData"); + + using (var fs = new DisposableFileSystem()) + { + var baseFolder = fs.GetFolder(); + var intermediateFolder = Path.Combine(baseFolder, "obj"); + var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); + + var result = WixRunner.Execute(new[] + { + "build", + Path.Combine(folder, "CustomAction", "CustomActionCycle.wxs"), + Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"), + Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), + "-bindpath", Path.Combine(folder, "SingleFile", "data"), + "-intermediateFolder", intermediateFolder, + "-o", msiPath + }); + + var warnings = result.Messages.Where(m => m.Level == MessageLevel.Warning).ToArray(); + Assert.False(result.ExitCode == 0 && warnings.Length == 0); + } + } + } +} -- cgit v1.2.3-55-g6feb