diff options
author | Bob Arnson <bob@firegiant.com> | 2022-11-15 18:04:38 -0500 |
---|---|---|
committer | Bob Arnson <github@bobs.org> | 2022-11-16 17:06:22 -0500 |
commit | 83d390b8fa44c9d064afa5a79c429505da34f834 (patch) | |
tree | 8121cf54967cc5436dad57a8e0f556d481cbc398 /src/ext/DifxApp/test | |
parent | d14c02d4ca6ee820b7111b789d9f904e0fd52804 (diff) | |
download | wix-83d390b8fa44c9d064afa5a79c429505da34f834.tar.gz wix-83d390b8fa44c9d064afa5a79c429505da34f834.tar.bz2 wix-83d390b8fa44c9d064afa5a79c429505da34f834.zip |
Go back to separate .wixlibs for DifxApp.
Fixes https://github.com/wixtoolset/issues/issues/7015.
Diffstat (limited to 'src/ext/DifxApp/test')
-rw-r--r-- | src/ext/DifxApp/test/WixToolsetTest.DifxApp/DifxAppExtensionFixture.cs | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/ext/DifxApp/test/WixToolsetTest.DifxApp/DifxAppExtensionFixture.cs b/src/ext/DifxApp/test/WixToolsetTest.DifxApp/DifxAppExtensionFixture.cs index 7bdd039b..d132952f 100644 --- a/src/ext/DifxApp/test/WixToolsetTest.DifxApp/DifxAppExtensionFixture.cs +++ b/src/ext/DifxApp/test/WixToolsetTest.DifxApp/DifxAppExtensionFixture.cs | |||
@@ -2,6 +2,8 @@ | |||
2 | 2 | ||
3 | namespace WixToolsetTest.DifxApp | 3 | namespace WixToolsetTest.DifxApp |
4 | { | 4 | { |
5 | using System; | ||
6 | using System.IO; | ||
5 | using System.Linq; | 7 | using System.Linq; |
6 | using WixInternal.TestSupport; | 8 | using WixInternal.TestSupport; |
7 | using WixInternal.Core.TestPackage; | 9 | using WixInternal.Core.TestPackage; |
@@ -19,17 +21,24 @@ namespace WixToolsetTest.DifxApp | |||
19 | var results = build.BuildAndQuery(Build, "CustomAction"); | 21 | var results = build.BuildAndQuery(Build, "CustomAction"); |
20 | WixAssert.CompareLineByLine(new[] | 22 | WixAssert.CompareLineByLine(new[] |
21 | { | 23 | { |
22 | "CustomAction:MsiCleanupOnSuccess\t1\tDIFxApp.dll\tCleanupOnSuccess\t", | 24 | "CustomAction:MsiCleanupOnSuccess\t1\tDIFxAppx64\tCleanupOnSuccess\t", |
23 | "CustomAction:MsiInstallDrivers\t3073\tDIFxAppA.dll\tInstallDriverPackages\t", | 25 | "CustomAction:MsiInstallDrivers\t3073\tDIFxAppAx64\tInstallDriverPackages\t", |
24 | "CustomAction:MsiProcessDrivers\t1\tDIFxApp.dll\tProcessDriverPackages\t", | 26 | "CustomAction:MsiProcessDrivers\t1\tDIFxAppx64\tProcessDriverPackages\t", |
25 | "CustomAction:MsiRollbackInstall\t3329\tDIFxAppA.dll\tRollbackInstall\t", | 27 | "CustomAction:MsiRollbackInstall\t3329\tDIFxAppAx64\tRollbackInstall\t", |
26 | "CustomAction:MsiUninstallDrivers\t3073\tDIFxAppA.dll\tUninstallDriverPackages\t", | 28 | "CustomAction:MsiUninstallDrivers\t3073\tDIFxAppAx64\tUninstallDriverPackages\t", |
27 | }, results); | 29 | }, results); |
28 | } | 30 | } |
29 | 31 | ||
30 | private static void Build(string[] args) | 32 | private static void Build(string[] args) |
31 | { | 33 | { |
32 | var result = WixRunner.Execute(warningsAsErrors: false, args).AssertSuccess(); | 34 | var newArgs = args.ToList(); |
35 | newArgs.Add("-platform"); | ||
36 | newArgs.Add("x64"); | ||
37 | |||
38 | var extDir = Path.GetDirectoryName(new Uri(typeof(DifxAppExtensionFactory).Assembly.CodeBase).LocalPath); | ||
39 | newArgs.Add(Path.Combine(extDir, "..", "difxapp_x64.wixlib")); | ||
40 | |||
41 | var result = WixRunner.Execute(warningsAsErrors: false, newArgs.ToArray()).AssertSuccess(); | ||
33 | 42 | ||
34 | Assert.Single(result.Messages.Where(m => m.Id == (int)WixToolset.Data.WarningMessages.Ids.DeprecatedElement)); | 43 | Assert.Single(result.Messages.Where(m => m.Id == (int)WixToolset.Data.WarningMessages.Ids.DeprecatedElement)); |
35 | } | 44 | } |