| 1 |
{ |
| 2 |
Copyright 2019-2022 Michalis Kamburelis. |
| 3 |
|
| 4 |
This file is part of "Castle Game Engine". |
| 5 |
|
| 6 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 7 |
included in this distribution, for details about the copyright. |
| 8 |
|
| 9 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 12 |
|
| 13 |
---------------------------------------------------------------------------- |
| 14 |
} |
| 15 |
|
| 16 |
{ Automatic test runner for CGE build tool. } |
| 17 |
|
| 18 |
uses |
| 19 |
SysUtils, CastleTester, CastleConsoleTester, CastleApplicationProperties, |
| 20 |
CastleScript, CastleLog, |
| 21 |
TestToolProject, |
| 22 |
TestToolManifest; |
| 23 |
|
| 24 |
var |
| 25 |
ConsoleTester: TCastleConsoleTester; |
| 26 |
begin |
| 27 |
ApplicationProperties.OnWarning.Add(@ApplicationProperties.WriteWarningOnConsole); |
| 28 |
ScriptVerboseMessages := true; |
| 29 |
|
| 30 |
{ Avoid warnings that opening files too early. } |
| 31 |
ApplicationProperties._FileAccessSafe := true; |
| 32 |
|
| 33 |
InitializeLog; // CastleConsoleTester puts output in log |
| 34 |
|
| 35 |
ConsoleTester := TCastleConsoleTester.Create; |
| 36 |
try |
| 37 |
ConsoleTester.Run(''); |
| 38 |
finally |
| 39 |
FreeAndNil(ConsoleTester); |
| 40 |
end; |
| 41 |
end. |