diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-05-01 23:58:21 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-05-04 11:33:47 -0500 |
| commit | 2cbe83832cc76aa379b29665de5523e82c543acf (patch) | |
| tree | 7cd31282afe0090b753ff3241332237b5602b36b /src/TestData/CacheTests/BundleC | |
| parent | 1c22e62b31e92a5788af04d448c19ae0c8b22767 (diff) | |
| download | wix-2cbe83832cc76aa379b29665de5523e82c543acf.tar.gz wix-2cbe83832cc76aa379b29665de5523e82c543acf.tar.bz2 wix-2cbe83832cc76aa379b29665de5523e82c543acf.zip | |
Add test for 5GB external payload.
Diffstat (limited to 'src/TestData/CacheTests/BundleC')
| -rw-r--r-- | src/TestData/CacheTests/BundleC/BundleC.wixproj | 26 | ||||
| -rw-r--r-- | src/TestData/CacheTests/BundleC/BundleC.wxs | 12 |
2 files changed, 38 insertions, 0 deletions
diff --git a/src/TestData/CacheTests/BundleC/BundleC.wixproj b/src/TestData/CacheTests/BundleC/BundleC.wixproj new file mode 100644 index 00000000..0acc29c4 --- /dev/null +++ b/src/TestData/CacheTests/BundleC/BundleC.wixproj | |||
| @@ -0,0 +1,26 @@ | |||
| 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 | <UpgradeCode>{997BDF9A-2540-42DB-8F86-296BA243194B}</UpgradeCode> | ||
| 6 | </PropertyGroup> | ||
| 7 | <ItemGroup> | ||
| 8 | <Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" /> | ||
| 9 | </ItemGroup> | ||
| 10 | <ItemGroup> | ||
| 11 | <ProjectReference Include="..\PackageA\PackageA.wixproj" /> | ||
| 12 | <ProjectReference Include="..\..\TestBA\TestBAWixlib\testbawixlib.wixproj" /> | ||
| 13 | </ItemGroup> | ||
| 14 | <ItemGroup> | ||
| 15 | <PackageReference Include="WixToolset.Bal.wixext" Version="4.0.101" /> | ||
| 16 | <PackageReference Include="WixToolset.NetFx.wixext" Version="4.0.73" /> | ||
| 17 | </ItemGroup> | ||
| 18 | <!-- We do this dynamically to avoid committing such a large file to source control. --> | ||
| 19 | <Target Name="CreateLargeFile" AfterTargets="BeforeBuild" Inputs="$(MSBuildProjectFullPath)" Outputs="$(MSBuildProjectDirectory)\fivegb.file"> | ||
| 20 | <Exec Command='"$(BaseOutputPath)$(Configuration)\netcoreapp3.1\win-x86\testexe.exe" /lf "fivegb.file|5368709120' WorkingDirectory="$(MSBuildProjectDirectory)" /> | ||
| 21 | </Target> | ||
| 22 | <!-- We do this to avoid copying such a large file to the VM to run the tests. --> | ||
| 23 | <Target Name="DeleteLargeFile" AfterTargets="AfterBuild"> | ||
| 24 | <Delete Files="$(OutputPath)fivegb.file" /> | ||
| 25 | </Target> | ||
| 26 | </Project> \ No newline at end of file | ||
diff --git a/src/TestData/CacheTests/BundleC/BundleC.wxs b/src/TestData/CacheTests/BundleC/BundleC.wxs new file mode 100644 index 00000000..ca21cc6e --- /dev/null +++ b/src/TestData/CacheTests/BundleC/BundleC.wxs | |||
| @@ -0,0 +1,12 @@ | |||
| 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.PackageA.TargetPath)"> | ||
| 8 | <Payload SourceFile="fivegb.file" Compressed="no" /> | ||
| 9 | </MsiPackage> | ||
| 10 | </PackageGroup> | ||
| 11 | </Fragment> | ||
| 12 | </Wix> | ||
