diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-07-16 21:17:15 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-07-16 21:21:10 +1000 |
| commit | 0db15d84eaabf2f1950784655ddd79413cfea44f (patch) | |
| tree | f4624623c861395505fb2508db2756713c770eb5 /src | |
| parent | 038c5777f980346ed70a195064eeb2bcca152194 (diff) | |
| download | wix-0db15d84eaabf2f1950784655ddd79413cfea44f.tar.gz wix-0db15d84eaabf2f1950784655ddd79413cfea44f.tar.bz2 wix-0db15d84eaabf2f1950784655ddd79413cfea44f.zip | |
Create failing test for named bind paths.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/WixlibFixture.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/WixlibFixture.cs b/src/test/WixToolsetTest.CoreIntegration/WixlibFixture.cs index 6ae2c0b8..a60169c7 100644 --- a/src/test/WixToolsetTest.CoreIntegration/WixlibFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/WixlibFixture.cs | |||
| @@ -88,6 +88,36 @@ namespace WixToolsetTest.CoreIntegration | |||
| 88 | } | 88 | } |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | [Fact(Skip = "Test demonstrates failure")] | ||
| 92 | public void CantBuildWixlibWithBinariesFromMissingNamedBindPaths() | ||
| 93 | { | ||
| 94 | var folder = TestData.Get(@"TestData\WixlibWithBinaries"); | ||
| 95 | |||
| 96 | using (var fs = new DisposableFileSystem()) | ||
| 97 | { | ||
| 98 | var baseFolder = fs.GetFolder(); | ||
| 99 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 100 | var wixlibPath = Path.Combine(intermediateFolder, @"test.wixlib"); | ||
| 101 | |||
| 102 | var result = WixRunner.Execute(new[] | ||
| 103 | { | ||
| 104 | "build", | ||
| 105 | Path.Combine(folder, "PackageComponents.wxs"), | ||
| 106 | "-bf", | ||
| 107 | "-bindpath", Path.Combine(folder, "data"), | ||
| 108 | // Use names that aren't excluded in default .gitignores. | ||
| 109 | "-bindpath", $"AlphaBits={Path.Combine(folder, "data", "alpha")}", | ||
| 110 | "-bindpath", $"PowerBits={Path.Combine(folder, "data", "powerpc")}", | ||
| 111 | "-bindpath", $"{Path.Combine(folder, "data", "alpha")}", | ||
| 112 | "-bindpath", $"{Path.Combine(folder, "data", "powerpc")}", | ||
| 113 | "-intermediateFolder", intermediateFolder, | ||
| 114 | "-o", wixlibPath, | ||
| 115 | }); | ||
| 116 | |||
| 117 | Assert.InRange(result.ExitCode, 2, int.MaxValue); | ||
| 118 | } | ||
| 119 | } | ||
| 120 | |||
| 91 | [Fact] | 121 | [Fact] |
| 92 | public void CanBuildSingleFileUsingWixlib() | 122 | public void CanBuildSingleFileUsingWixlib() |
| 93 | { | 123 | { |
