diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-02-11 13:46:45 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-02-11 13:52:29 -0800 |
| commit | c6e2213e818b869c44c1af7355fc06f45ebf1a1f (patch) | |
| tree | db01cac18404c9be74c95183956b1ceb517ef5c8 /src/test/WixToolsetTest.CoreIntegration/ApprovedExeFixture.cs | |
| parent | 0fcb0cb1d0a2f741f83feb76bc276926f499686d (diff) | |
| download | wix-c6e2213e818b869c44c1af7355fc06f45ebf1a1f.tar.gz wix-c6e2213e818b869c44c1af7355fc06f45ebf1a1f.tar.bz2 wix-c6e2213e818b869c44c1af7355fc06f45ebf1a1f.zip | |
Replace Win64 attribute with Bitness attribute
Closes wixtoolset/#4707
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/ApprovedExeFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/ApprovedExeFixture.cs | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/ApprovedExeFixture.cs b/src/test/WixToolsetTest.CoreIntegration/ApprovedExeFixture.cs new file mode 100644 index 00000000..47b47ef5 --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/ApprovedExeFixture.cs | |||
| @@ -0,0 +1,64 @@ | |||
| 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 | namespace WixToolsetTest.CoreIntegration | ||
| 4 | { | ||
| 5 | using System.IO; | ||
| 6 | using WixBuildTools.TestSupport; | ||
| 7 | using WixToolset.Core.TestPackage; | ||
| 8 | using Xunit; | ||
| 9 | |||
| 10 | public class ApprovedExeFixture | ||
| 11 | { | ||
| 12 | [Fact] | ||
| 13 | public void CanBuildWithApprovedExe() | ||
| 14 | { | ||
| 15 | var folder = TestData.Get(@"TestData"); | ||
| 16 | |||
| 17 | using (var fs = new DisposableFileSystem()) | ||
| 18 | { | ||
| 19 | var baseFolder = fs.GetFolder(); | ||
| 20 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 21 | var exePath = Path.Combine(baseFolder, @"bin\test.exe"); | ||
| 22 | |||
| 23 | var result = WixRunner.Execute(new[] | ||
| 24 | { | ||
| 25 | "build", | ||
| 26 | Path.Combine(folder, "BundleWithApprovedExe", "Bundle.wxs"), | ||
| 27 | "-bindpath", Path.Combine(folder, "SimpleBundle", "data"), | ||
| 28 | "-bindpath", Path.Combine(folder, ".Data"), | ||
| 29 | "-intermediateFolder", intermediateFolder, | ||
| 30 | "-o", exePath, | ||
| 31 | }); | ||
| 32 | |||
| 33 | Assert.NotEqual(0, result.ExitCode); | ||
| 34 | Assert.False(File.Exists(exePath)); | ||
| 35 | } | ||
| 36 | } | ||
| 37 | |||
| 38 | [Fact] | ||
| 39 | public void CanBuildWithApprovedExe64() | ||
| 40 | { | ||
| 41 | var folder = TestData.Get(@"TestData"); | ||
| 42 | |||
| 43 | using (var fs = new DisposableFileSystem()) | ||
| 44 | { | ||
| 45 | var baseFolder = fs.GetFolder(); | ||
| 46 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 47 | var exePath = Path.Combine(baseFolder, @"bin\test.exe"); | ||
| 48 | |||
| 49 | var result = WixRunner.Execute(new[] | ||
| 50 | { | ||
| 51 | "build", | ||
| 52 | Path.Combine(folder, "BundleWithApprovedExe", "Bundle64.wxs"), | ||
| 53 | "-bindpath", Path.Combine(folder, "SimpleBundle", "data"), | ||
| 54 | "-bindpath", Path.Combine(folder, ".Data"), | ||
| 55 | "-intermediateFolder", intermediateFolder, | ||
| 56 | "-o", exePath, | ||
| 57 | }); | ||
| 58 | |||
| 59 | Assert.NotEqual(0, result.ExitCode); | ||
| 60 | Assert.False(File.Exists(exePath)); | ||
| 61 | } | ||
| 62 | } | ||
| 63 | } | ||
| 64 | } | ||
