diff options
| author | Bob Arnson <bob@joyofsetup.com> | 2017-12-08 14:41:40 -0500 |
|---|---|---|
| committer | Bob Arnson <bob@joyofsetup.com> | 2017-12-08 14:41:40 -0500 |
| commit | 6008384f4ff8be1fec86861014fc392a6ddd4632 (patch) | |
| tree | c8f26eece12e3c42dba42062b9605a47599348fe /src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs | |
| parent | c99ba1a05efffd7c43edd87380bc1442942de7a9 (diff) | |
| download | wix-6008384f4ff8be1fec86861014fc392a6ddd4632.tar.gz wix-6008384f4ff8be1fec86861014fc392a6ddd4632.tar.bz2 wix-6008384f4ff8be1fec86861014fc392a6ddd4632.zip | |
Add broken test for PE payloads.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs b/src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs index 614107b0..1ce445e8 100644 --- a/src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs | |||
| @@ -146,6 +146,36 @@ namespace WixToolsetTest.CoreIntegration | |||
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | [Fact] | 148 | [Fact] |
| 149 | public void CanBuildMultipleFilesCompressed() | ||
| 150 | { | ||
| 151 | var folder = TestData.Get(@"TestData\MultiFileCompressed"); | ||
| 152 | |||
| 153 | using (var fs = new DisposableFileSystem()) | ||
| 154 | { | ||
| 155 | var intermediateFolder = fs.GetFolder(); | ||
| 156 | |||
| 157 | var program = new Program(); | ||
| 158 | var result = program.Run(new WixToolsetServiceProvider(), new[] | ||
| 159 | { | ||
| 160 | "build", | ||
| 161 | Path.Combine(folder, "Package.wxs"), | ||
| 162 | Path.Combine(folder, "PackageComponents.wxs"), | ||
| 163 | "-d", "MediaTemplateCompressionLevel", | ||
| 164 | "-loc", Path.Combine(folder, "Package.en-us.wxl"), | ||
| 165 | "-bindpath", Path.Combine(folder, "data"), | ||
| 166 | "-intermediateFolder", intermediateFolder, | ||
| 167 | "-o", Path.Combine(intermediateFolder, @"bin\test.msi") | ||
| 168 | }); | ||
| 169 | |||
| 170 | Assert.Equal(0, result); | ||
| 171 | |||
| 172 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.msi"))); | ||
| 173 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\cab1.cab"))); | ||
| 174 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.wixpdb"))); | ||
| 175 | } | ||
| 176 | } | ||
| 177 | |||
| 178 | [Fact] | ||
| 149 | public void CanBuildSimpleModule() | 179 | public void CanBuildSimpleModule() |
| 150 | { | 180 | { |
| 151 | var folder = TestData.Get(@"TestData\SimpleModule"); | 181 | var folder = TestData.Get(@"TestData\SimpleModule"); |
