This repository has been archived by the owner on Jan 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Program.cs
66 lines (61 loc) · 2.28 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* PROJECT: ReactOS System Regression Testing Utility, Windows/VirtualBox version
* LICENSE: GNU GPLv2 or any later version as published by the Free Software Foundation
* PURPOSE: Processing the incoming debugging data
* COPYRIGHT: Copyright Aleksey Bragin <[email protected]>. Based around ideas and code from
* sysreg created by Christoph von Wittich <[email protected]> and
* Colin Finck <[email protected]>
*/
using System;
using System.Collections.Generic;
using System.IO.Pipes;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading;
using System.IO;
using VirtualBox;
using System.Runtime.InteropServices;
namespace sysreg3
{
public enum ContinueType
{
EXIT_CHECKPOINT_REACHED,
EXIT_CONTINUE,
EXIT_DONT_CONTINUE
}
class Program
{
static void Main(string[] args)
{
Environment.ExitCode = 1;
RegTester regTester = new RegTester();
// Set parameters
for (int i = 0; i < args.Length; i++)
{
int intValue;
switch (args[i])
{
case "--maxretries" :
if (i < args.Length - 1 && Int32.TryParse(args[i + 1], out intValue))
{ regTester.maxRetries = intValue; i++; }
break;
case "--sessiontimeout":
if (i < args.Length - 1 && Int32.TryParse(args[i + 1], out intValue))
{ regTester.vmTimeout = intValue * 1000; i++; }
break;
case "--nolog":
regTester.logName = null;
break;
case "--maxcachehits":
if (i < args.Length - 1 && Int32.TryParse(args[i + 1], out intValue))
{ RegTester.maxCacheHits = intValue ; i++; }
break;
}
}
if(regTester.debugLogFilename != null)
Console.WriteLine("[SYSREG] Serial log path: " + regTester.debugLogFilename);
regTester.RunTests();
}
}
}