diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-04-23 12:17:32 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-04-23 12:43:38 +1000 |
| commit | bd3ee565f342bc0bb015594f303d13b67285a958 (patch) | |
| tree | 1994e37e385851a7cfdd69b3f7cf03b3bfaa8a7b /src/test/WixToolsetTest.ManagedHost/TestEngine.cs | |
| parent | 05edba00dc08b74a6d9b32b4e56f4da6ef90c638 (diff) | |
| download | wix-bd3ee565f342bc0bb015594f303d13b67285a958.tar.gz wix-bd3ee565f342bc0bb015594f303d13b67285a958.tar.bz2 wix-bd3ee565f342bc0bb015594f303d13b67285a958.zip | |
Update ManagedHost tests to run off of a bundle.
Diffstat (limited to 'src/test/WixToolsetTest.ManagedHost/TestEngine.cs')
| -rw-r--r-- | src/test/WixToolsetTest.ManagedHost/TestEngine.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/test/WixToolsetTest.ManagedHost/TestEngine.cs b/src/test/WixToolsetTest.ManagedHost/TestEngine.cs index 4dd531ad..751ed59c 100644 --- a/src/test/WixToolsetTest.ManagedHost/TestEngine.cs +++ b/src/test/WixToolsetTest.ManagedHost/TestEngine.cs | |||
| @@ -4,15 +4,26 @@ namespace WixToolsetTest.ManagedHost | |||
| 4 | { | 4 | { |
| 5 | using System.Collections.Generic; | 5 | using System.Collections.Generic; |
| 6 | using System.Diagnostics; | 6 | using System.Diagnostics; |
| 7 | using System.IO; | ||
| 7 | using WixBuildTools.TestSupport; | 8 | using WixBuildTools.TestSupport; |
| 9 | using WixToolset.Core.TestPackage; | ||
| 8 | 10 | ||
| 9 | public class TestEngine | 11 | public class TestEngine |
| 10 | { | 12 | { |
| 11 | private static readonly string TestEngineFile = TestData.Get(@"..\Win32\examples\Example.TestEngine\Example.TestEngine.exe"); | 13 | private static readonly string TestEngineFile = TestData.Get(@"..\Win32\examples\Example.TestEngine\Example.TestEngine.exe"); |
| 14 | public static readonly string BurnStubFile = TestData.Get(@"runtimes\win-x86\native\burn.x86.exe"); | ||
| 12 | 15 | ||
| 13 | public TestEngineResult RunShutdownEngine(string baFile) | 16 | public TestEngineResult RunShutdownEngine(string bundleFilePath, string tempFolderPath) |
| 14 | { | 17 | { |
| 15 | var args = new string[] { '"' + baFile + '"' }; | 18 | var baFolderPath = Path.Combine(tempFolderPath, "ba"); |
| 19 | var extractFolderPath = Path.Combine(tempFolderPath, "extract"); | ||
| 20 | var extractResult = BundleExtractor.ExtractBAContainer(null, bundleFilePath, baFolderPath, extractFolderPath); | ||
| 21 | extractResult.AssertSuccess(); | ||
| 22 | |||
| 23 | var args = new string[] { | ||
| 24 | '"' + bundleFilePath + '"', | ||
| 25 | '"' + extractResult.GetBAFilePath(baFolderPath) + '"', | ||
| 26 | }; | ||
| 16 | return RunProcessCaptureOutput(TestEngineFile, args); | 27 | return RunProcessCaptureOutput(TestEngineFile, args); |
| 17 | } | 28 | } |
| 18 | 29 | ||
