diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-09-30 10:01:55 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-09-30 13:14:35 +1000 |
| commit | a96ae75e256712829ac2174688c71e6a14ba1943 (patch) | |
| tree | 5be2520a1166cc1585879f9b44c376efd7bf1e1e /src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |
| parent | 1b266e62a450813718d0ff1c78f4470055adc5f3 (diff) | |
| download | wix-a96ae75e256712829ac2174688c71e6a14ba1943.tar.gz wix-a96ae75e256712829ac2174688c71e6a14ba1943.tar.bz2 wix-a96ae75e256712829ac2174688c71e6a14ba1943.zip | |
Add failing test for CustomAction.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index e7443f35..fb42d8fc 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
| @@ -147,6 +147,40 @@ namespace WixToolsetTest.CoreIntegration | |||
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | [Fact(Skip = "Test demonstrates failure")] | 149 | [Fact(Skip = "Test demonstrates failure")] |
| 150 | public void PopulatesCustomActionTable() | ||
| 151 | { | ||
| 152 | var folder = TestData.Get(@"TestData"); | ||
| 153 | |||
| 154 | using (var fs = new DisposableFileSystem()) | ||
| 155 | { | ||
| 156 | var baseFolder = fs.GetFolder(); | ||
| 157 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 158 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
| 159 | |||
| 160 | var result = WixRunner.Execute(new[] | ||
| 161 | { | ||
| 162 | "build", | ||
| 163 | Path.Combine(folder, "CustomAction", "UnscheduledCustomAction.wxs"), | ||
| 164 | Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"), | ||
| 165 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
| 166 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
| 167 | "-intermediateFolder", intermediateFolder, | ||
| 168 | "-o", msiPath | ||
| 169 | }); | ||
| 170 | |||
| 171 | result.AssertSuccess(); | ||
| 172 | |||
| 173 | Assert.True(File.Exists(msiPath)); | ||
| 174 | var results = Query.QueryDatabase(msiPath, new[] { "Binary", "CustomAction" }); | ||
| 175 | Assert.Equal(new[] | ||
| 176 | { | ||
| 177 | "Binary:Binary1\t[Binary data]", | ||
| 178 | "CustomAction:CustomAction1\t1\tBinary1\tInvalidEntryPoint\t", | ||
| 179 | }, results); | ||
| 180 | } | ||
| 181 | } | ||
| 182 | |||
| 183 | [Fact(Skip = "Test demonstrates failure")] | ||
| 150 | public void PopulatesDirectoryTableWithValidDefaultDir() | 184 | public void PopulatesDirectoryTableWithValidDefaultDir() |
| 151 | { | 185 | { |
| 152 | var folder = TestData.Get(@"TestData"); | 186 | var folder = TestData.Get(@"TestData"); |
