mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-15 15:19:52 +00:00
Codechange: introduce regression script for GS compat scripts
This commit is contained in:
@@ -23,3 +23,4 @@
|
||||
add_subdirectory(regression)
|
||||
add_subdirectory(stationlist)
|
||||
add_subdirectory(gs)
|
||||
add_subdirectory(gs_compat)
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
include(CreateRegression)
|
||||
create_regression("game"
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/info.nut
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/main.nut
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/result.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test.sav
|
||||
)
|
||||
@@ -0,0 +1,13 @@
|
||||
class CompatRegression extends GSInfo {
|
||||
function GetAuthor() { return "OpenTTD GS Developers Team"; }
|
||||
function GetName() { return "Compat Regression"; }
|
||||
function GetShortName() { return "REGC"; }
|
||||
function GetDescription() { return "This runs regression on the compat scripts."; }
|
||||
function GetVersion() { return 1; }
|
||||
function GetAPIVersion() { return "1.2"; }
|
||||
function GetDate() { return "2026-05-19"; }
|
||||
function CreateInstance() { return "CompatRegression"; }
|
||||
function UseAsRandomAI() { return false; }
|
||||
}
|
||||
|
||||
RegisterGS(CompatRegression());
|
||||
@@ -0,0 +1,6 @@
|
||||
class CompatRegression extends GSController {
|
||||
function Start()
|
||||
{
|
||||
print("Done...");
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,2 @@
|
||||
Done...
|
||||
ERROR: The script died unexpectedly.
|
||||
Binary file not shown.
Reference in New Issue
Block a user