aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-04-24 17:00:13 -0500
committerSean Hall <r.sean.hall@gmail.com>2021-04-25 23:06:35 -0500
commit8a957275b6a1185f3b74fb31fff258be7f628347 (patch)
treee59e314117a837665b14cdb8aebbd107d55fc4e2 /src/test
parent07bee0d033f1b4acb63e3da17764a3855503bce2 (diff)
downloadwix-8a957275b6a1185f3b74fb31fff258be7f628347.tar.gz
wix-8a957275b6a1185f3b74fb31fff258be7f628347.tar.bz2
wix-8a957275b6a1185f3b74fb31fff258be7f628347.zip
Ignore Compressed attribute for payloads when authored into a container
#6406
Diffstat (limited to 'src/test')
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs7
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/TestData/Payload/DownloadUrlPlaceholdersBundle.wxs2
2 files changed, 7 insertions, 2 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs b/src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs
index da87bf6c..23f6a9ba 100644
--- a/src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs
+++ b/src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs
@@ -157,7 +157,7 @@ namespace WixToolsetTest.CoreIntegration
157 var baFolderPath = Path.Combine(baseFolder, "ba"); 157 var baFolderPath = Path.Combine(baseFolder, "ba");
158 var extractFolderPath = Path.Combine(baseFolder, "extract"); 158 var extractFolderPath = Path.Combine(baseFolder, "extract");
159 159
160 var result = WixRunner.Execute(new[] 160 var result = WixRunner.Execute(false, new[]
161 { 161 {
162 "build", 162 "build",
163 Path.Combine(folder, "Payload", "DownloadUrlPlaceholdersBundle.wxs"), 163 Path.Combine(folder, "Payload", "DownloadUrlPlaceholdersBundle.wxs"),
@@ -170,6 +170,11 @@ namespace WixToolsetTest.CoreIntegration
170 170
171 result.AssertSuccess(); 171 result.AssertSuccess();
172 172
173 WixAssert.CompareLineByLine(new string[]
174 {
175 "The Payload 'burn.exe' is being added to Container 'PackagesContainer', overriding its Compressed value of 'no'.",
176 }, result.Messages.Select(m => m.ToString()).ToArray());
177
173 Assert.True(File.Exists(bundlePath)); 178 Assert.True(File.Exists(bundlePath));
174 179
175 var extractResult = BundleExtractor.ExtractBAContainer(null, bundlePath, baFolderPath, extractFolderPath); 180 var extractResult = BundleExtractor.ExtractBAContainer(null, bundlePath, baFolderPath, extractFolderPath);
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/Payload/DownloadUrlPlaceholdersBundle.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/Payload/DownloadUrlPlaceholdersBundle.wxs
index 87bb79f9..f8f38ea6 100644
--- a/src/test/WixToolsetTest.CoreIntegration/TestData/Payload/DownloadUrlPlaceholdersBundle.wxs
+++ b/src/test/WixToolsetTest.CoreIntegration/TestData/Payload/DownloadUrlPlaceholdersBundle.wxs
@@ -14,7 +14,7 @@
14 </Bundle> 14 </Bundle>
15 <Fragment> 15 <Fragment>
16 <PackageGroup Id="ContainerPackages"> 16 <PackageGroup Id="ContainerPackages">
17 <ExePackage SourceFile="burn.exe" DetectCondition="none" /> 17 <ExePackage SourceFile="burn.exe" DetectCondition="none" Compressed="no" />
18 </PackageGroup> 18 </PackageGroup>
19 </Fragment> 19 </Fragment>
20 <Fragment> 20 <Fragment>