aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.ManagedHost/TestEngine.cs
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-04-23 12:26:07 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-04-23 12:43:38 +1000
commitab495395492055c8c016e54ab0b1f7af2e9f164c (patch)
treef7f86e82cb463303c5bf2e501065ea09a9b62af0 /src/test/WixToolsetTest.ManagedHost/TestEngine.cs
parentbd3ee565f342bc0bb015594f303d13b67285a958 (diff)
downloadwix-ab495395492055c8c016e54ab0b1f7af2e9f164c.tar.gz
wix-ab495395492055c8c016e54ab0b1f7af2e9f164c.tar.bz2
wix-ab495395492055c8c016e54ab0b1f7af2e9f164c.zip
Add reload engine and test.
Diffstat (limited to 'src/test/WixToolsetTest.ManagedHost/TestEngine.cs')
-rw-r--r--src/test/WixToolsetTest.ManagedHost/TestEngine.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.ManagedHost/TestEngine.cs b/src/test/WixToolsetTest.ManagedHost/TestEngine.cs
index 751ed59c..cda32895 100644
--- a/src/test/WixToolsetTest.ManagedHost/TestEngine.cs
+++ b/src/test/WixToolsetTest.ManagedHost/TestEngine.cs
@@ -13,14 +13,25 @@ namespace WixToolsetTest.ManagedHost
13 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"); 14 public static readonly string BurnStubFile = TestData.Get(@"runtimes\win-x86\native\burn.x86.exe");
15 15
16 public TestEngineResult RunReloadEngine(string bundleFilePath, string tempFolderPath)
17 {
18 return this.RunTestEngine("reload", bundleFilePath, tempFolderPath);
19 }
20
16 public TestEngineResult RunShutdownEngine(string bundleFilePath, string tempFolderPath) 21 public TestEngineResult RunShutdownEngine(string bundleFilePath, string tempFolderPath)
17 { 22 {
23 return this.RunTestEngine("shutdown", bundleFilePath, tempFolderPath);
24 }
25
26 private TestEngineResult RunTestEngine(string engineMode, string bundleFilePath, string tempFolderPath)
27 {
18 var baFolderPath = Path.Combine(tempFolderPath, "ba"); 28 var baFolderPath = Path.Combine(tempFolderPath, "ba");
19 var extractFolderPath = Path.Combine(tempFolderPath, "extract"); 29 var extractFolderPath = Path.Combine(tempFolderPath, "extract");
20 var extractResult = BundleExtractor.ExtractBAContainer(null, bundleFilePath, baFolderPath, extractFolderPath); 30 var extractResult = BundleExtractor.ExtractBAContainer(null, bundleFilePath, baFolderPath, extractFolderPath);
21 extractResult.AssertSuccess(); 31 extractResult.AssertSuccess();
22 32
23 var args = new string[] { 33 var args = new string[] {
34 engineMode,
24 '"' + bundleFilePath + '"', 35 '"' + bundleFilePath + '"',
25 '"' + extractResult.GetBAFilePath(baFolderPath) + '"', 36 '"' + extractResult.GetBAFilePath(baFolderPath) + '"',
26 }; 37 };