diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/test/WixToolsetTest.BuildTasks/MsbuildFixture.cs | 27 |
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"); |