From 9174c74948e8b7e20816af791aec06033f2c1738 Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Thu, 6 Sep 2018 20:38:13 -0400 Subject: Add .wixipl output MSBuild test. --- .../WixToolsetTest.BuildTasks/MsbuildFixture.cs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs b/src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs index 119c3ba5..96f39318 100644 --- a/src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs +++ b/src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs @@ -80,6 +80,33 @@ namespace WixToolsetTest.BuildTasks } } + [Fact] + public void CanBuildSimpleMsiPackageAsWixipl() + { + var projectPath = TestData.Get(@"TestData\SimpleMsiPackage\MsiPackage\MsiPackage.wixproj"); + + using (var fs = new DisposableFileSystem()) + { + var baseFolder = fs.GetFolder(); + var binFolder = Path.Combine(baseFolder, @"bin\"); + var intermediateFolder = Path.Combine(baseFolder, @"obj\"); + + var result = this.MsbuildRunner.Execute(projectPath, new[] + { + $"-p:WixTargetsPath={WixTargetsPath}", + $"-p:IntermediateOutputPath={intermediateFolder}", + $"-p:OutputPath={binFolder}", + "-p:OutputType=IntermediatePostLink" + }); + result.AssertSuccess(); + + var path = Directory.EnumerateFiles(binFolder, @"*.*", SearchOption.AllDirectories) + .Select(s => s.Substring(baseFolder.Length + 1)) + .Single(); + Assert.Equal(@"bin\MsiPackage.wixipl", path); + } + } + [Fact] public void CanBuildAndCleanSimpleMsiPackage() { -- cgit v1.2.3-55-g6feb