forked from mirror/OpenTTD
Codechange: move regression outside of bin and make it work via CMake script
The tst_stationlist savegame had to be changed to start the correct AI. In the old setup, all regression AIs had the same name, which made it impossible to run both regressions in parallel. With the new setup this is possible. Although all files are available to run the regression, it won't really work till CMake is introduced (which will happen in a few commits from here)
This commit is contained in:
13
regression/regression/info.nut
Normal file
13
regression/regression/info.nut
Normal file
@@ -0,0 +1,13 @@
|
||||
class Regression extends AIInfo {
|
||||
function GetAuthor() { return "OpenTTD NoAI Developers Team"; }
|
||||
function GetName() { return "Regression"; }
|
||||
function GetShortName() { return "REGR"; }
|
||||
function GetDescription() { return "This runs regression-tests on some commands. On the same map the result should always be the same."; }
|
||||
function GetVersion() { return 1; }
|
||||
function GetAPIVersion() { return "1.11"; }
|
||||
function GetDate() { return "2007-03-18"; }
|
||||
function CreateInstance() { return "Regression"; }
|
||||
}
|
||||
|
||||
RegisterAI(Regression());
|
||||
|
1935
regression/regression/main.nut
Normal file
1935
regression/regression/main.nut
Normal file
File diff suppressed because it is too large
Load Diff
2
regression/regression/require.nut
Normal file
2
regression/regression/require.nut
Normal file
@@ -0,0 +1,2 @@
|
||||
print(" Required this file");
|
||||
|
9348
regression/regression/result.txt
Normal file
9348
regression/regression/result.txt
Normal file
File diff suppressed because it is too large
Load Diff
BIN
regression/regression/test.sav
Normal file
BIN
regression/regression/test.sav
Normal file
Binary file not shown.
Reference in New Issue
Block a user