diff options
-rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs index 75bbccd2..9d057dd8 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs | |||
@@ -324,6 +324,41 @@ namespace WixToolsetTest.CoreIntegration | |||
324 | } | 324 | } |
325 | 325 | ||
326 | [Fact] | 326 | [Fact] |
327 | public void CanLoadPdbGeneratedByBuildViaWixOutput() | ||
328 | { | ||
329 | var folder = TestData.Get(@"TestData\MultiFileCompressed"); | ||
330 | |||
331 | using (var fs = new DisposableFileSystem()) | ||
332 | { | ||
333 | var intermediateFolder = fs.GetFolder(); | ||
334 | |||
335 | var result = WixRunner.Execute(new[] | ||
336 | { | ||
337 | "build", | ||
338 | Path.Combine(folder, "Package.wxs"), | ||
339 | Path.Combine(folder, "PackageComponents.wxs"), | ||
340 | "-d", "MediaTemplateCompressionLevel", | ||
341 | "-loc", Path.Combine(folder, "Package.en-us.wxl"), | ||
342 | "-bindpath", Path.Combine(folder, "data"), | ||
343 | "-intermediateFolder", intermediateFolder, | ||
344 | "-o", Path.Combine(intermediateFolder, @"bin\test.msi") | ||
345 | }); | ||
346 | |||
347 | result.AssertSuccess(); | ||
348 | |||
349 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.msi"))); | ||
350 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\cab1.cab"))); | ||
351 | |||
352 | var pdbPath = Path.Combine(intermediateFolder, @"bin\test.wixpdb"); | ||
353 | Assert.True(File.Exists(pdbPath)); | ||
354 | |||
355 | var wixOutput = WixOutput.Read(pdbPath); | ||
356 | var output = WindowsInstallerData.Load(wixOutput, suppressVersionCheck: true); | ||
357 | Assert.NotNull(output); | ||
358 | } | ||
359 | } | ||
360 | |||
361 | [Fact] | ||
327 | public void CanBuildSimpleModule() | 362 | public void CanBuildSimpleModule() |
328 | { | 363 | { |
329 | var folder = TestData.Get(@"TestData\SimpleModule"); | 364 | var folder = TestData.Get(@"TestData\SimpleModule"); |