aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2020-07-17 15:22:14 -0700
committerRob Mensching <rob@firegiant.com>2020-07-17 15:27:13 -0700
commit6b21265e139513c1a242d8677b154fcc0e1dc7ef (patch)
tree7520da432e1fd2a8dc3c6de7f601bcfd632692f1 /src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs
parentc37f29a156a84e27e6b38a7841e2ddcde015b071 (diff)
downloadwix-6b21265e139513c1a242d8677b154fcc0e1dc7ef.tar.gz
wix-6b21265e139513c1a242d8677b154fcc0e1dc7ef.tar.bz2
wix-6b21265e139513c1a242d8677b154fcc0e1dc7ef.zip
Ensure named bindpaths are not found in unnamed bindpaths
Fixes wixtoolset/issues#6200
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs')
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs32
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}