diff options
| author | Bob Arnson <bob@firegiant.com> | 2022-01-03 22:36:16 -0500 |
|---|---|---|
| committer | Bob Arnson <github@bobs.org> | 2022-01-09 19:18:25 -0500 |
| commit | bae756f4354fed4de6097c931590ccafc907fdb2 (patch) | |
| tree | abd51068cacae6eb4fd2b05840e8e6f64adae161 /src/test | |
| parent | c2b00d75493798d9f2452d5e5014b14afcb14889 (diff) | |
| download | wix-bae756f4354fed4de6097c931590ccafc907fdb2.tar.gz wix-bae756f4354fed4de6097c931590ccafc907fdb2.tar.bz2 wix-bae756f4354fed4de6097c931590ccafc907fdb2.zip | |
Handle 32-bit related-bundle registration...
...from 64-bit bundles.
Diffstat (limited to 'src/test')
3 files changed, 44 insertions, 0 deletions
diff --git a/src/test/burn/TestData/UpgradeRelatedBundleTests/BundleAv2x64/BundleAv2x64.wixproj b/src/test/burn/TestData/UpgradeRelatedBundleTests/BundleAv2x64/BundleAv2x64.wixproj new file mode 100644 index 00000000..fb7d592b --- /dev/null +++ b/src/test/burn/TestData/UpgradeRelatedBundleTests/BundleAv2x64/BundleAv2x64.wixproj | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
| 2 | <Project Sdk="WixToolset.Sdk"> | ||
| 3 | <Import Project="..\BundleAv1\BundleA.props" /> | ||
| 4 | <PropertyGroup> | ||
| 5 | <BA>TestBA_x64</BA> | ||
| 6 | <InstallerPlatform>X64</InstallerPlatform> | ||
| 7 | <Version>2.0.0.0</Version> | ||
| 8 | </PropertyGroup> | ||
| 9 | <ItemGroup> | ||
| 10 | <ProjectReference Include="..\PackageAv2\PackageAv2.wixproj" /> | ||
| 11 | <ProjectReference Include="..\..\TestBA\TestBAWixlib_x64\testbawixlib_x64.wixproj" /> | ||
| 12 | </ItemGroup> | ||
| 13 | <ItemGroup> | ||
| 14 | <PackageReference Include="WixToolset.Bal.wixext" /> | ||
| 15 | <PackageReference Include="WixToolset.NetFx.wixext" /> | ||
| 16 | </ItemGroup> | ||
| 17 | </Project> \ No newline at end of file | ||
diff --git a/src/test/burn/TestData/UpgradeRelatedBundleTests/BundleAv2x64/BundleAv2x64.wxs b/src/test/burn/TestData/UpgradeRelatedBundleTests/BundleAv2x64/BundleAv2x64.wxs new file mode 100644 index 00000000..5cbee5a8 --- /dev/null +++ b/src/test/burn/TestData/UpgradeRelatedBundleTests/BundleAv2x64/BundleAv2x64.wxs | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
| 2 | |||
| 3 | |||
| 4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
| 5 | <Fragment> | ||
| 6 | <PackageGroup Id="BundlePackages"> | ||
| 7 | <MsiPackage Id="PackageA" SourceFile="$(var.PackageAv2.TargetPath)" /> | ||
| 8 | </PackageGroup> | ||
| 9 | </Fragment> | ||
| 10 | </Wix> | ||
diff --git a/src/test/burn/WixToolsetTest.BurnE2E/UpgradeRelatedBundleTests.cs b/src/test/burn/WixToolsetTest.BurnE2E/UpgradeRelatedBundleTests.cs index 35cc64f0..a515ed69 100644 --- a/src/test/burn/WixToolsetTest.BurnE2E/UpgradeRelatedBundleTests.cs +++ b/src/test/burn/WixToolsetTest.BurnE2E/UpgradeRelatedBundleTests.cs | |||
| @@ -32,5 +32,22 @@ namespace WixToolsetTest.BurnE2E | |||
| 32 | Assert.True(LogVerifier.MessageInLogFileRegex(bundleAv2InstallLogFilePath, @"OnDetectRelatedBundle\(\) - id: \{[0-9A-Za-z\-]{36}\}, missing from cache: True")); | 32 | Assert.True(LogVerifier.MessageInLogFileRegex(bundleAv2InstallLogFilePath, @"OnDetectRelatedBundle\(\) - id: \{[0-9A-Za-z\-]{36}\}, missing from cache: True")); |
| 33 | Assert.True(LogVerifier.MessageInLogFileRegex(bundleAv2InstallLogFilePath, @"Detected related bundle: \{[0-9A-Za-z\-]{36}\}, type: Upgrade, scope: PerMachine, version: 1\.0\.0\.0, cached: No")); | 33 | Assert.True(LogVerifier.MessageInLogFileRegex(bundleAv2InstallLogFilePath, @"Detected related bundle: \{[0-9A-Za-z\-]{36}\}, type: Upgrade, scope: PerMachine, version: 1\.0\.0\.0, cached: No")); |
| 34 | } | 34 | } |
| 35 | |||
| 36 | [Fact] | ||
| 37 | public void Bundle64UpgradesBundle32() | ||
| 38 | { | ||
| 39 | var packageAv1 = this.CreatePackageInstaller("PackageAv1"); | ||
| 40 | var packageAv2 = this.CreatePackageInstaller("PackageAv2"); | ||
| 41 | var bundleAv1 = this.CreateBundleInstaller("BundleAv1"); | ||
| 42 | var bundleAv2x64 = this.CreateBundleInstaller("BundleAv2x64"); | ||
| 43 | |||
| 44 | bundleAv1.Install(); | ||
| 45 | bundleAv1.VerifyRegisteredAndInPackageCache(); | ||
| 46 | |||
| 47 | bundleAv2x64.Install(); | ||
| 48 | bundleAv2x64.VerifyRegisteredAndInPackageCache(); | ||
| 49 | |||
| 50 | bundleAv1.VerifyUnregisteredAndRemovedFromPackageCache(); | ||
| 51 | } | ||
| 35 | } | 52 | } |
| 36 | } | 53 | } |
