aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2018-09-06 20:38:13 -0400
committerBob Arnson <bob@firegiant.com>2018-09-06 20:38:13 -0400
commit9174c74948e8b7e20816af791aec06033f2c1738 (patch)
treeaf523108bb696076b19f6a9b90a77d008ae190d4
parent8a20ec988b05b9fe6312bf3d39098a00c6b46ef1 (diff)
downloadwix-9174c74948e8b7e20816af791aec06033f2c1738.tar.gz
wix-9174c74948e8b7e20816af791aec06033f2c1738.tar.bz2
wix-9174c74948e8b7e20816af791aec06033f2c1738.zip
Add .wixipl output MSBuild test.
-rw-r--r--src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs27
1 files changed, 27 insertions, 0 deletions
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
@@ -81,6 +81,33 @@ namespace WixToolsetTest.BuildTasks
81 } 81 }
82 82
83 [Fact] 83 [Fact]
84 public void CanBuildSimpleMsiPackageAsWixipl()
85 {
86 var projectPath = TestData.Get(@"TestData\SimpleMsiPackage\MsiPackage\MsiPackage.wixproj");
87
88 using (var fs = new DisposableFileSystem())
89 {
90 var baseFolder = fs.GetFolder();
91 var binFolder = Path.Combine(baseFolder, @"bin\");
92 var intermediateFolder = Path.Combine(baseFolder, @"obj\");
93
94 var result = this.MsbuildRunner.Execute(projectPath, new[]
95 {
96 $"-p:WixTargetsPath={WixTargetsPath}",
97 $"-p:IntermediateOutputPath={intermediateFolder}",
98 $"-p:OutputPath={binFolder}",
99 "-p:OutputType=IntermediatePostLink"
100 });
101 result.AssertSuccess();
102
103 var path = Directory.EnumerateFiles(binFolder, @"*.*", SearchOption.AllDirectories)
104 .Select(s => s.Substring(baseFolder.Length + 1))
105 .Single();
106 Assert.Equal(@"bin\MsiPackage.wixipl", path);
107 }
108 }
109
110 [Fact]
84 public void CanBuildAndCleanSimpleMsiPackage() 111 public void CanBuildAndCleanSimpleMsiPackage()
85 { 112 {
86 var projectPath = TestData.Get(@"TestData\SimpleMsiPackage\MsiPackage\MsiPackage.wixproj"); 113 var projectPath = TestData.Get(@"TestData\SimpleMsiPackage\MsiPackage\MsiPackage.wixproj");