Commit graph

14 commits

Author SHA1 Message Date
Colin Finck 40da1525c9 [ROSAUTOTEST]
Make outputting a string as easy as it should be. Now that our StringOut internally uses OutputDebugStringA instead of DbgPrint, we don't need to output in 512 byte chunks anymore.
Additionally, do an explicit flush when using std::cout to not lose debug output.

ROSTESTS-158 #resolve #comment Committed in r66855

svn path=/trunk/; revision=66855
2015-03-22 12:35:08 +00:00
Colin Finck 65b4da13f4 [ROSAUTOTEST]
- Finish a test run in the database when all tests have successfully been run. This got lost during the C++ rewrite of rosautotest in r40147.
- Don't spam the logs with useless OK messages. Only report the web service response if an error occurred.

svn path=/trunk/; revision=66516
2015-03-01 11:19:30 +00:00
Thomas Faber 99126ff14b [ROSAUTOTEST]
- Disable error dialogs unless running in interactive mode
ONLINE-441

svn path=/trunk/; revision=66506
2015-02-28 21:29:44 +00:00
Thomas Faber b3777ffecc [ROSAUTOTEST]
- Continue the testing process in case a test fails to execute
ONLINE-441

svn path=/trunk/; revision=66504
2015-02-28 21:12:25 +00:00
Colin Finck 8d14ace200 [ROSAUTOTEST]
- Check the environment variable ROSAUTOTEST_DIR for an alternative path to the test executables. Otherwise use the default %windir%\bin
- Update the URL of the web service

svn path=/trunk/; revision=66481
2015-02-28 02:39:14 +00:00
Pierre Schweitzer e8c27f3109 [ROSAUTOTESTS]
Remove redundant GetTickCount() call

svn path=/trunk/; revision=66348
2015-02-18 19:52:04 +00:00
Thomas Faber 1ea34407b8 [ROSAUTOTEST]
- Abstract unidirectional anonymous pipes into a CPipe class
- Abstract a process with redirected output into a CPipedProcess class
- Use these abstractions to avoid polling for output from test processes. Instead, use blocking read operations to yield the CPU while waiting for data.
ROSTESTS-144 #resolve

svn path=/trunk/; revision=66316
2015-02-16 13:17:04 +00:00
Hermès Bélusca-Maïto b84022008b [ROSAUTOTEST]
Initialize hStdInput to the standard input handle, and hStdError to the output pipe, instead of keeping these handles NULL. See the details why this is important in the Jira report ROSTESTS-140.
ROSTESTS-140 #resolve #comment Fixed.

svn path=/trunk/; revision=64055
2014-09-07 00:34:26 +00:00
Pierre Schweitzer 5ce3089b36 [ROSAUTOTEST]
Use matching delete operator

CID #1102027
CID #1102028

svn path=/trunk/; revision=62635
2014-04-05 21:56:15 +00:00
Colin Finck 647486074a [ROSAUTOTEST]
Use "advanced C++ features" like default parameters to reduce the complexity of StringOut calls and fix a warning in the MSVC build :-)

svn path=/trunk/; revision=57076
2012-08-14 20:25:58 +00:00
Kamil Hornicek 04135b7ce4 [ROSAUTOTEST]
If the last chunk of the string sent to StringOut isn't a whole line and forcePrint is set to false, send back what's left after processing. The caller is then responsible for prepending that string next time it calls StringOut. Should fix the rest of debug log corruptions.

svn path=/trunk/; revision=55670
2012-02-17 12:31:32 +00:00
Giannis Adamopoulos aac3d18763 [rosautotest]
- When rosautotest is launched, show how much time has past since the machine has started
- Also show how much time each individual test need to complete
- The purpose of this feature isn't to benchmark the os but to let us spot regressions regarding test time 

svn path=/trunk/; revision=55441
2012-02-05 20:56:21 +00:00
Gregor Schneider 70dc807bf2 [rosautotest]: Find the last underscore instead of the first one when building a module name, hurray for twain_32_winetest and ws2_32_winetest
See issue #4929 for more details.

svn path=/trunk/; revision=44282
2009-11-24 20:36:53 +00:00
Colin Finck 10f13abcb5 Big testing system commit
rosautotest
- Rewrite rosautotest in C++
  Should increase maintainability and expandability, since most of the functionality is encapsulated in classes and there exist some abstract classes for further enhancements (i.e. new test types).
  Furthermore, due to the usage of STL strings, we don't need x lines anymore just for building a string out of several small parts.
- The new codebase made it fairly easy to implement a Crash Recovery feature based on a journal.
  If you start rosautotest with the /r option under ReactOS, it will keep a journal about the tests to run and the tests already ran. In case of a crash, it can just continue with the next test in the list then.
- Add some reasonable timeouts to avoid certain hangs in case a test crashes

sysreg2
- Make the necessary changes to sysreg2 to restart the VM in case of such a crash in 3rd stage, but set a maximum number of allowed crashes as well.
  Christoph, please test and review that on the Buildslave :-)
- Prepend all sysreg messages with [SYSREG] through a new function SysregPrintf, so the BuildBot aggregator script of testman can distinguish between debug output and sysreg messages.
- Put all header includes into the central header file "sysreg.h"
- Remove unnecessary libs from the Makefile

testman
- Change the testman Web Interface to show such crashes as CRASH in the Compare and Detail views.

svn path=/trunk/; revision=40147
2009-03-21 01:39:04 +00:00