diff options
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs')
-rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs b/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs index 3e9c7aa4..857b84cc 100644 --- a/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs | |||
@@ -13,7 +13,7 @@ namespace WixToolsetTest.CoreIntegration | |||
13 | [Fact] | 13 | [Fact] |
14 | public void CanBuildWithDefaultValue() | 14 | public void CanBuildWithDefaultValue() |
15 | { | 15 | { |
16 | var folder = TestData.Get(@"TestData\BindVariables"); | 16 | var folder = TestData.Get(@"TestData", "BindVariables"); |
17 | 17 | ||
18 | using (var fs = new DisposableFileSystem()) | 18 | using (var fs = new DisposableFileSystem()) |
19 | { | 19 | { |
@@ -34,5 +34,35 @@ namespace WixToolsetTest.CoreIntegration | |||
34 | result.AssertSuccess(); | 34 | result.AssertSuccess(); |
35 | } | 35 | } |
36 | } | 36 | } |
37 | |||
38 | [Fact] | ||
39 | public void CannotBuildWixlibWithBinariesFromMissingNamedBindPaths() | ||
40 | { | ||
41 | var folder = TestData.Get(@"TestData", "WixlibWithBinaries"); | ||
42 | |||
43 | using (var fs = new DisposableFileSystem()) | ||
44 | { | ||
45 | var baseFolder = fs.GetFolder(); | ||
46 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
47 | var wixlibPath = Path.Combine(intermediateFolder, @"test.wixlib"); | ||
48 | |||
49 | var result = WixRunner.Execute(new[] | ||
50 | { | ||
51 | "build", | ||
52 | Path.Combine(folder, "PackageComponents.wxs"), | ||
53 | "-bf", | ||
54 | "-bindpath", Path.Combine(folder, "data"), | ||
55 | // Use names that aren't excluded in default .gitignores. | ||
56 | "-bindpath", $"AlphaBits={Path.Combine(folder, "data", "alpha")}", | ||
57 | "-bindpath", $"PowerBits={Path.Combine(folder, "data", "powerpc")}", | ||
58 | "-bindpath", $"{Path.Combine(folder, "data", "alpha")}", | ||
59 | "-bindpath", $"{Path.Combine(folder, "data", "powerpc")}", | ||
60 | "-intermediateFolder", intermediateFolder, | ||
61 | "-o", wixlibPath, | ||
62 | }); | ||
63 | |||
64 | Assert.Equal(103, result.ExitCode); | ||
65 | } | ||
66 | } | ||
37 | } | 67 | } |
38 | } | 68 | } |