performance improvements in TestRunner
This commit is contained in:
parent
141ef13daa
commit
2ae6eadcb4
Binary file not shown.
|
|
@ -230,9 +230,9 @@ begin
|
|||
p.StandardInput.WriteLine('GO');
|
||||
//p.StandardInput.AutoFlush := true;
|
||||
//var p := System.Diagnostics.Process.Start(psi);
|
||||
|
||||
while not p.HasExited do
|
||||
Sleep(10);
|
||||
p.WaitForExit();
|
||||
//while not p.HasExited do
|
||||
// Sleep(5);
|
||||
if p.ExitCode <> 0 then
|
||||
begin
|
||||
System.Windows.Forms.MessageBox.Show('Running of ' + files[i] + ' failed. Exit code is not 0');
|
||||
|
|
@ -349,12 +349,14 @@ begin
|
|||
DeletePCUFiles;
|
||||
ClearExeDir;
|
||||
CompileAllRunTests(false);
|
||||
writeln('Tests to run: '+Milliseconds()+'ms');
|
||||
end;
|
||||
|
||||
if (ParamCount = 0) or (ParamStr(1) = '2') then
|
||||
begin
|
||||
CopyLibFiles;
|
||||
CompileAllCompilationTests('CompilationSamples', false);
|
||||
writeln('CompilationSamples: '+Milliseconds()+'ms');
|
||||
end;
|
||||
if (ParamCount = 0) or (ParamStr(1) = '3') then
|
||||
begin
|
||||
|
|
@ -362,12 +364,12 @@ begin
|
|||
CopyPCUFiles;
|
||||
CompileAllUsesUnits;
|
||||
CompileErrorTests(false);
|
||||
writeln('Tests compiled successfully');
|
||||
writeln('Other tests '+Milliseconds()+'ms'+'. Tests compiled successfully ');
|
||||
end;
|
||||
if (ParamCount = 0) or (ParamStr(1) = '4') then
|
||||
begin
|
||||
RunAllTests(false);
|
||||
writeln('Tests run successfully');
|
||||
writeln('Tests run successfully: '+Milliseconds()+'ms');
|
||||
ClearExeDir;
|
||||
DeletePCUFiles;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Reference in a new issue