diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-04-01 19:28:51 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-04-01 22:06:11 -0500 |
commit | 8faa28db427119b3541733290d87783dd699d425 (patch) | |
tree | 689b238be084d3ce02685e6ee1765bd50b33f87f /src/test | |
parent | 39b9a6112c2ff97f31f195749e2142538e47a2eb (diff) | |
download | wix-8faa28db427119b3541733290d87783dd699d425.tar.gz wix-8faa28db427119b3541733290d87783dd699d425.tar.bz2 wix-8faa28db427119b3541733290d87783dd699d425.zip |
Support v3 bundles in BundlePackage and "burn extract" command.
Diffstat (limited to 'src/test')
3 files changed, 44 insertions, 0 deletions
diff --git a/src/test/burn/TestData/BundlePackageTests/V3BundlePackageBundle/V3BundlePackageBundle.wixproj b/src/test/burn/TestData/BundlePackageTests/V3BundlePackageBundle/V3BundlePackageBundle.wixproj new file mode 100644 index 00000000..d57ac072 --- /dev/null +++ b/src/test/burn/TestData/BundlePackageTests/V3BundlePackageBundle/V3BundlePackageBundle.wixproj | |||
@@ -0,0 +1,22 @@ | |||
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 | <PropertyGroup> | ||
4 | <OutputType>Bundle</OutputType> | ||
5 | <BA>TestBA_x64</BA> | ||
6 | <UpgradeCode>{B6CAE45D-A7E5-4302-9FCF-4D05632F9FD7}</UpgradeCode> | ||
7 | <InstallerPlatform>x64</InstallerPlatform> | ||
8 | </PropertyGroup> | ||
9 | <ItemGroup> | ||
10 | <Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" /> | ||
11 | </ItemGroup> | ||
12 | <ItemGroup> | ||
13 | <BindInputPaths Include="..\..\..\..\..\wix\test\WixToolsetTest.CoreIntegration\TestData\.Data" /> | ||
14 | </ItemGroup> | ||
15 | <ItemGroup> | ||
16 | <ProjectReference Include="..\..\TestBA\TestBAWixlib_x64\testbawixlib_x64.wixproj" /> | ||
17 | </ItemGroup> | ||
18 | <ItemGroup> | ||
19 | <PackageReference Include="WixToolset.Bal.wixext" /> | ||
20 | <PackageReference Include="WixToolset.NetFx.wixext" /> | ||
21 | </ItemGroup> | ||
22 | </Project> \ No newline at end of file | ||
diff --git a/src/test/burn/TestData/BundlePackageTests/V3BundlePackageBundle/V3BundlePackageBundle.wxs b/src/test/burn/TestData/BundlePackageTests/V3BundlePackageBundle/V3BundlePackageBundle.wxs new file mode 100644 index 00000000..131a1b4d --- /dev/null +++ b/src/test/burn/TestData/BundlePackageTests/V3BundlePackageBundle/V3BundlePackageBundle.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 | <BundlePackage SourceFile="v3bundle.exe" /> | ||
8 | </PackageGroup> | ||
9 | </Fragment> | ||
10 | </Wix> | ||
diff --git a/src/test/burn/WixToolsetTest.BurnE2E/BundlePackageTests.cs b/src/test/burn/WixToolsetTest.BurnE2E/BundlePackageTests.cs index 1e6cda9c..4686875a 100644 --- a/src/test/burn/WixToolsetTest.BurnE2E/BundlePackageTests.cs +++ b/src/test/burn/WixToolsetTest.BurnE2E/BundlePackageTests.cs | |||
@@ -3,6 +3,7 @@ | |||
3 | namespace WixToolsetTest.BurnE2E | 3 | namespace WixToolsetTest.BurnE2E |
4 | { | 4 | { |
5 | using System.IO; | 5 | using System.IO; |
6 | using WixTestTools; | ||
6 | using Xunit; | 7 | using Xunit; |
7 | using Xunit.Abstractions; | 8 | using Xunit.Abstractions; |
8 | 9 | ||
@@ -64,6 +65,17 @@ namespace WixToolsetTest.BurnE2E | |||
64 | } | 65 | } |
65 | 66 | ||
66 | [Fact] | 67 | [Fact] |
68 | public void CanInstallV3BundlePackage() | ||
69 | { | ||
70 | var v3BundlePackageBundle = this.CreateBundleInstaller("V3BundlePackageBundle"); | ||
71 | |||
72 | var logPath = v3BundlePackageBundle.Install(); | ||
73 | v3BundlePackageBundle.VerifyRegisteredAndInPackageCache(); | ||
74 | |||
75 | Assert.True(LogVerifier.MessageInLogFile(logPath, "Applied execute package: v3bundle.exe, result: 0x0, restart: None")); | ||
76 | } | ||
77 | |||
78 | [Fact] | ||
67 | public void CanSkipObsoleteBundlePackage() | 79 | public void CanSkipObsoleteBundlePackage() |
68 | { | 80 | { |
69 | var bundleAv1 = this.CreateBundleInstaller(@"..\UpgradeRelatedBundleTests\BundleAv1"); | 81 | var bundleAv1 = this.CreateBundleInstaller(@"..\UpgradeRelatedBundleTests\BundleAv1"); |