diff options
| author | Rob Mensching <rob@firegiant.com> | 2018-10-03 14:30:58 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@robmensching.com> | 2018-10-03 14:41:49 -0700 |
| commit | be612cbcea4e74196445940c41b42acb6ffa5ebd (patch) | |
| tree | 7d7232f5cabe537d5fcfee0782f646c6d2221b57 /src/test | |
| parent | a0d67c99eb5be2ce6e83f9a8a46d52b61d9871dc (diff) | |
| download | wix-be612cbcea4e74196445940c41b42acb6ffa5ebd.tar.gz wix-be612cbcea4e74196445940c41b42acb6ffa5ebd.tar.bz2 wix-be612cbcea4e74196445940c41b42acb6ffa5ebd.zip | |
Implement -arch switch
Fixes wixtoolset/issues#5863
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs index 0e73179b..0efe5635 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs | |||
| @@ -448,6 +448,38 @@ namespace WixToolsetTest.CoreIntegration | |||
| 448 | } | 448 | } |
| 449 | } | 449 | } |
| 450 | 450 | ||
| 451 | [Fact] | ||
| 452 | public void CanBuild64bit() | ||
| 453 | { | ||
| 454 | var folder = TestData.Get(@"TestData\SingleFile"); | ||
| 455 | |||
| 456 | using (var fs = new DisposableFileSystem()) | ||
| 457 | { | ||
| 458 | var baseFolder = fs.GetFolder(); | ||
| 459 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 460 | |||
| 461 | var result = WixRunner.Execute(new[] | ||
| 462 | { | ||
| 463 | "build", | ||
| 464 | Path.Combine(folder, "Package.wxs"), | ||
| 465 | Path.Combine(folder, "PackageComponents.wxs"), | ||
| 466 | "-loc", Path.Combine(folder, "Package.en-us.wxl"), | ||
| 467 | "-bindpath", Path.Combine(folder, "data"), | ||
| 468 | "-intermediateFolder", intermediateFolder, | ||
| 469 | "-arch", "x64", | ||
| 470 | "-o", Path.Combine(baseFolder, @"bin\test.msi") | ||
| 471 | }); | ||
| 472 | |||
| 473 | result.AssertSuccess(); | ||
| 474 | |||
| 475 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"test.wir")); | ||
| 476 | var section = intermediate.Sections.Single(); | ||
| 477 | |||
| 478 | var platformSummary = section.Tuples.OfType<_SummaryInformationTuple>().Single(s => s.PropertyId == 7); | ||
| 479 | Assert.Equal("x64;1033", platformSummary.Value); | ||
| 480 | } | ||
| 481 | } | ||
| 482 | |||
| 451 | [Fact(Skip = "Not implemented yet.")] | 483 | [Fact(Skip = "Not implemented yet.")] |
| 452 | public void CanBuildInstanceTransform() | 484 | public void CanBuildInstanceTransform() |
| 453 | { | 485 | { |
