diff options
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs | 62 |
1 files changed, 61 insertions, 1 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs b/src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs index 62920142..614107b0 100644 --- a/src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs | |||
| @@ -73,7 +73,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 73 | Assert.Equal(0, result); | 73 | Assert.Equal(0, result); |
| 74 | 74 | ||
| 75 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.msi"))); | 75 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.msi"))); |
| 76 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\cab1.cab"))); | 76 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\example.cab"))); |
| 77 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.wixpdb"))); | 77 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.wixpdb"))); |
| 78 | 78 | ||
| 79 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"bin\test.wir")); | 79 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"bin\test.wir")); |
| @@ -86,6 +86,66 @@ namespace WixToolsetTest.CoreIntegration | |||
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | [Fact] | 88 | [Fact] |
| 89 | public void CanBuildSingleFileCompressedWithMediaTemplate() | ||
| 90 | { | ||
| 91 | var folder = TestData.Get(@"TestData\SingleFileCompressed"); | ||
| 92 | |||
| 93 | using (var fs = new DisposableFileSystem()) | ||
| 94 | { | ||
| 95 | var intermediateFolder = fs.GetFolder(); | ||
| 96 | |||
| 97 | var program = new Program(); | ||
| 98 | var result = program.Run(new WixToolsetServiceProvider(), new[] | ||
| 99 | { | ||
| 100 | "build", | ||
| 101 | Path.Combine(folder, "Package.wxs"), | ||
| 102 | Path.Combine(folder, "PackageComponents.wxs"), | ||
| 103 | "-d", "MediaTemplateCompressionLevel", | ||
| 104 | "-loc", Path.Combine(folder, "Package.en-us.wxl"), | ||
| 105 | "-bindpath", Path.Combine(folder, "data"), | ||
| 106 | "-intermediateFolder", intermediateFolder, | ||
| 107 | "-o", Path.Combine(intermediateFolder, @"bin\test.msi") | ||
| 108 | }); | ||
| 109 | |||
| 110 | Assert.Equal(0, result); | ||
| 111 | |||
| 112 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.msi"))); | ||
| 113 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\cab1.cab"))); | ||
| 114 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.wixpdb"))); | ||
| 115 | } | ||
| 116 | } | ||
| 117 | |||
| 118 | [Fact] | ||
| 119 | public void CanBuildSingleFileCompressedWithMediaTemplateWithLowCompression() | ||
| 120 | { | ||
| 121 | var folder = TestData.Get(@"TestData\SingleFileCompressed"); | ||
| 122 | |||
| 123 | using (var fs = new DisposableFileSystem()) | ||
| 124 | { | ||
| 125 | var intermediateFolder = fs.GetFolder(); | ||
| 126 | |||
| 127 | var program = new Program(); | ||
| 128 | var result = program.Run(new WixToolsetServiceProvider(), new[] | ||
| 129 | { | ||
| 130 | "build", | ||
| 131 | Path.Combine(folder, "Package.wxs"), | ||
| 132 | Path.Combine(folder, "PackageComponents.wxs"), | ||
| 133 | "-d", "MediaTemplateCompressionLevel=low", | ||
| 134 | "-loc", Path.Combine(folder, "Package.en-us.wxl"), | ||
| 135 | "-bindpath", Path.Combine(folder, "data"), | ||
| 136 | "-intermediateFolder", intermediateFolder, | ||
| 137 | "-o", Path.Combine(intermediateFolder, @"bin\test.msi") | ||
| 138 | }); | ||
| 139 | |||
| 140 | Assert.Equal(0, result); | ||
| 141 | |||
| 142 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.msi"))); | ||
| 143 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\lowcab1.cab"))); | ||
| 144 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.wixpdb"))); | ||
| 145 | } | ||
| 146 | } | ||
| 147 | |||
| 148 | [Fact] | ||
| 89 | public void CanBuildSimpleModule() | 149 | public void CanBuildSimpleModule() |
| 90 | { | 150 | { |
| 91 | var folder = TestData.Get(@"TestData\SimpleModule"); | 151 | var folder = TestData.Get(@"TestData\SimpleModule"); |
