aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.ManagedHost/TestEngine.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/WixToolsetTest.ManagedHost/TestEngine.cs')
-rw-r--r--src/test/WixToolsetTest.ManagedHost/TestEngine.cs15
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