TestRunner for CI workflow

This commit is contained in:
Ivan Bondarev 2021-01-05 13:50:31 +01:00
parent 6cbe414c0e
commit 4b08a823a7
3 changed files with 11 additions and 2 deletions

View file

@ -17,5 +17,5 @@ begin
end;
begin
Assert(1=1);
Assert(1=0);
end

Binary file not shown.

View file

@ -245,7 +245,16 @@ begin
p.StandardInput.WriteLine('GO');
//p.StandardInput.AutoFlush := true;
//var p := System.Diagnostics.Process.Start(psi);
p.WaitForExit();
if nogui then
begin
var success := p.WaitForExit(60000);
if not success then
begin
raise new Exception('Running of ' + files[i] + ' failed.');
end;
end
else
p.WaitForExit();
//while not p.HasExited do
// Sleep(5);
if p.ExitCode <> 0 then