32 Commits

Author SHA1 Message Date
Colin Finck
e8a1478b1c [SYSREG3]
Using "localhost" to access the named pipe on the local machine relies on some networked access, which fails on our new Windows tester for some reason.
Replacing this by "." (as done in the MSDN example for NamedPipeClientStream) fixes the problem for me.

svn path=/trunk/sysreg3/; revision=2152
2014-10-29 17:18:54 +00:00
Sylvain Petreolle
0fb33bcaa3 [SYSREG3]
Improve traces & ignore list.

svn path=/trunk/sysreg3/; revision=2097
2014-02-15 13:06:13 +00:00
Sylvain Petreolle
15c82c3f29 [SYSREG3]
Update to Virtualbox 4.3.6.
Set SATA controller port count to 2, it decreases the VM start time.

svn path=/trunk/sysreg3/; revision=2096
2014-02-15 13:04:49 +00:00
Sylvain Petreolle
21a9fef235 [SYSREG3]
Since r57752, the kernel command line doesn't contain slashes anymore.
Update KDSERIAL detection accordingly.

svn path=/trunk/sysreg3/; revision=1940
2013-01-06 18:16:01 +00:00
Sylvain Petreolle
0f8e3c035a [SYSREG3]
Refactoring for readability.

svn path=/trunk/sysreg3/; revision=1904
2012-11-27 20:06:48 +00:00
Sylvain Petreolle
8d5a194307 [SYSREG3]
Update sysreg3 to VBox 4.2.

svn path=/trunk/sysreg3/; revision=1662
2012-09-15 10:10:51 +00:00
Sylvain Petreolle
5e1405c13c [SYSREG3]
Add --maxCacheHits (int) option.
Turn LogReader.timedOut into a property.

svn path=/trunk/sysreg3/; revision=1518
2012-08-16 22:31:40 +00:00
Sylvain Petreolle
13688ac726 [SYSREG3]
Fix DoNotDeclareVisibleInstanceFields fxcop errors:
turn LogReader.result and LogReader.timedOut into properties.

svn path=/trunk/sysreg3/; revision=1504
2012-08-15 19:51:32 +00:00
Sylvain Petreolle
cafb5a8234 [SYSREG3]
Add new command line options :
--sessiontimeout (in seconds, previously defaults to 1 min)
--nolog (disable the testbot.txt logging)
Use a SATA controller in created VM.

Move string literals to const.
Add support for the new RtlAssert mechanism (do a break once for now)

svn path=/trunk/sysreg3/; revision=1502
2012-08-15 16:09:57 +00:00
Sylvain Petreolle
e9f391bc9c [SYSREG3]
Implement bt support in kdserial mode.

svn path=/trunk/sysreg3/; revision=1388
2012-03-04 20:22:36 +00:00
Sylvain Petreolle
b7ec2efa3e [SYSREG3]
-Fix kdb prompt detection.
-Break on kdb message.
-Detect KDSERIAL mode.
-Report reason of VM shutdown failure.

svn path=/trunk/sysreg3/; revision=1382
2012-03-03 18:11:03 +00:00
Sylvain Petreolle
d46ee93884 [SYSREG3]
Fix VM creation.

svn path=/trunk/sysreg3/; revision=1347
2011-12-20 11:28:07 +00:00
Aleksey Bragin
4ec42f1941 [SYSREG3]
- Don't power down VM if session is already unlocked (which should mean that the VM is powered down already).

svn path=/trunk/sysreg3/; revision=1314
2011-08-20 22:25:13 +00:00
Aleksey Bragin
408624a974 [SYSREG3]
- Further increase max cache hits to 1k by Olaf's request.

svn path=/trunk/sysreg3/; revision=1313
2011-08-18 18:22:23 +00:00
Aleksey Bragin
56feead3e1 [SYSREG3]
- Increase max same-line cache hits threshold to 150.

svn path=/trunk/sysreg3/; revision=1312
2011-08-15 09:41:39 +00:00
Aleksey Bragin
bfb46dbabb - Move the SEH block higher in the code hierarchy (as it should have been, really) so that it catches all arising exceptions.
svn path=/trunk/sysreg3/; revision=1311
2011-08-13 21:29:39 +00:00
Aleksey Bragin
4e8cac3a7c [SYSREG3]
- Abort the testing if the OS keeps outputting same line into the debug log more than 50 times. Logic of this algorithm comes from sysreg2.

svn path=/trunk/sysreg3/; revision=1310
2011-08-10 11:30:20 +00:00
Aleksey Bragin
4073010d4f [SYSREG3]
- Implement a very simple command line parameters support. Currently, only maxretries is supported. The syntax is:
"sysreg3.exe --maxretries 40" would set the max number of retries to 40.

svn path=/trunk/sysreg3/; revision=1309
2011-08-08 19:28:41 +00:00
Aleksey Bragin
54eff43d4c [SYSREG3]
- Move log reader implementation to a LogReader class, and run it in a standalone thread, using Timer as a watchdog for hung virtual machine. It may not be done ideally, however it seems to work as expected now. Feel free to improve!

svn path=/trunk/sysreg3/; revision=1282
2011-04-12 10:32:53 +00:00
Aleksey Bragin
adcf16d577 - Upgrade to VBox4 again, including all HDD-related logic changes.
- Add pipe closing.
- Wait one second after closing the pipe, otherwise VBox fails to power down the virtual machine.

svn path=/trunk/sysreg3/; revision=1281
2011-04-10 10:11:55 +00:00
Aleksey Bragin
a39e4a07b8 [SYSREG3]
- Improvements by w.a.hajenius@gmail.com:
* Now uses a named pipe instead of a shared file; this prevents unexpectedly broken up lines when using recent VirtualBox versions (apparently ReadLine could get confused when reading from the shared file). A new dedicated StreamWriter is used to log the debug output.
* Creates a VM with default settings if it doesn't exist yet (default settings to be reviewed)
* A few small code improvements
See issue #6093 for more details.

svn path=/trunk/sysreg3/; revision=1280
2011-04-09 14:07:57 +00:00
Aleksey Bragin
00ef81b3e0 [SYSREG3]
- Return success errorlevel only when the final checkpoint is reached, otherwise return errorlevel 1.

svn path=/trunk/sysreg3/; revision=1267
2011-02-17 09:03:58 +00:00
Aleksey Bragin
79c8f48751 [SYSREG3]
- Revert a switch to VirtualBox 4. It'll be recommitted when ReactOS-in-VirtualBox 4 related problems are solved.

svn path=/trunk/sysreg3/; revision=1266
2011-02-17 08:43:24 +00:00
Aleksey Bragin
d944722b82 [SYSREG3]
- Upgrade sysreg3 to be compatible with VirtualBox 4 API.
- Rewrite HDD management section (impove the hdd finding algorithm, should be less dependent on the existing hdd position now, also IDE controller is dynamically detected now instead of being hardcoded to instane 0).
- As a result of VirtualBox medium storage changes, sysreg3 is now able to store the harddisk image in the current working directory.

svn path=/trunk/sysreg3/; revision=1265
2011-02-13 10:59:34 +00:00
Aleksey Bragin
6ae2292dd3 [SYSREG3]
- Check if a line contains "kdb:>" at any place instead of always expecting "kdb:> ". This could fix the the missing backtraces problem.
- Also commit maxretries and timeout values which are used in production now.

svn path=/trunk/sysreg3/; revision=1261
2011-01-13 19:11:06 +00:00
Aleksey Bragin
6879f2a567 [SYSREG3]
- Create logfile in the current working directory instead of a temp dir.

svn path=/trunk/sysreg3/; revision=1258
2011-01-07 09:16:09 +00:00
Aleksey Bragin
823071301e [SYSREG3]
- Place serial log file in an always writable temp path.

svn path=/trunk/sysreg3/; revision=1249
2010-12-29 14:34:35 +00:00
Aleksey Bragin
dbfd7b0b4d [SYSREG3]
- Reduce default timeout to 40 secs for testing purposes.
- Perform active waiting with a 5 seconds timeout for closing the vm. Fixes "VM sessions is already open or being closed" exception.

svn path=/trunk/sysreg3/; revision=1245
2010-12-17 13:26:17 +00:00
Aleksey Bragin
160f8f4146 [SYSREG3]
- Add x64 build target to the project files.
- Cache debug port file path once in the beginning, so that EmptyDebugLog() doesn't require an open vmSession object.
- Always close the VM session object after ProcessDebugOutput() has finished its processing.

svn path=/trunk/sysreg3/; revision=1244
2010-12-17 11:09:30 +00:00
Aleksey Bragin
5b1a9d2e95 [SYSREG3]
- Add hdd creating/emptying during every start of a testing cycle.
- Add checkpoints support for 1st and 2nd stages to properly sense the moment when OS shuts down.
- Start implementing VM configuration checker/fixer. Right now it only checks and enables/configures a serial port.
- Misc logic fixes.

svn path=/trunk/tools/sysreg3/; revision=1218
2010-06-10 21:27:50 +00:00
Aleksey Bragin
168435a3a6 [SYSREG3]
- Print a message if maximum number of retries is exceeded.
- Stop executing if ProcessDebugOutput asked so.
- Report stopping reason to console.

svn path=/trunk/tools/sysreg3/; revision=1217
2010-06-09 09:12:07 +00:00
Aleksey Bragin
f0c6c67b0e [SYSREG]
- Initial commit of a Windows-based sysreg tool by popular demand. Platform is .NET, and the only supported virtual machine is VirtualBox. WIP.

svn path=/trunk/tools/sysreg3/; revision=1216
2010-06-07 20:04:18 +00:00