diff options
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs | 28 | ||||
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/TestData/BundleBindVariables/CacheIdFromPackageDescription.wxs | 8 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs b/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs index 857b84cc..44f9c802 100644 --- a/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs | |||
| @@ -10,6 +10,34 @@ namespace WixToolsetTest.CoreIntegration | |||
| 10 | 10 | ||
| 11 | public class BindVariablesFixture | 11 | public class BindVariablesFixture |
| 12 | { | 12 | { |
| 13 | [Fact(Skip = "Test demonstrates failure")] | ||
| 14 | public void CanBuildBundleWithPackageBindVariables() | ||
| 15 | { | ||
| 16 | var folder = TestData.Get(@"TestData"); | ||
| 17 | |||
| 18 | using (var fs = new DisposableFileSystem()) | ||
| 19 | { | ||
| 20 | var baseFolder = fs.GetFolder(); | ||
| 21 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 22 | var exePath = Path.Combine(baseFolder, @"bin\test.exe"); | ||
| 23 | |||
| 24 | var result = WixRunner.Execute(new[] | ||
| 25 | { | ||
| 26 | "build", | ||
| 27 | Path.Combine(folder, "BundleBindVariables", "CacheIdFromPackageDescription.wxs"), | ||
| 28 | Path.Combine(folder, "BundleWithPackageGroupRef", "Bundle.wxs"), | ||
| 29 | "-bindpath", Path.Combine(folder, "SimpleBundle", "data"), | ||
| 30 | "-bindpath", Path.Combine(folder, ".Data"), | ||
| 31 | "-intermediateFolder", intermediateFolder, | ||
| 32 | "-o", exePath, | ||
| 33 | }); | ||
| 34 | |||
| 35 | result.AssertSuccess(); | ||
| 36 | |||
| 37 | Assert.True(File.Exists(exePath)); | ||
| 38 | } | ||
| 39 | } | ||
| 40 | |||
| 13 | [Fact] | 41 | [Fact] |
| 14 | public void CanBuildWithDefaultValue() | 42 | public void CanBuildWithDefaultValue() |
| 15 | { | 43 | { |
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/BundleBindVariables/CacheIdFromPackageDescription.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/BundleBindVariables/CacheIdFromPackageDescription.wxs new file mode 100644 index 00000000..7f5ea456 --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/BundleBindVariables/CacheIdFromPackageDescription.wxs | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
| 3 | <Fragment> | ||
| 4 | <PackageGroup Id="BundlePackages"> | ||
| 5 | <MsiPackage SourceFile="test.msi" CacheId="!(bind.packageDescription.test.msi)" /> | ||
| 6 | </PackageGroup> | ||
| 7 | </Fragment> | ||
| 8 | </Wix> | ||
