Codechange: introduce regression script for GS compat scripts

This commit is contained in:
Rubidium
2026-05-19 21:05:37 +02:00
committed by rubidium42
parent 4e58f4dffa
commit a9a2965131
6 changed files with 29 additions and 0 deletions
+1
View File
@@ -23,3 +23,4 @@
add_subdirectory(regression)
add_subdirectory(stationlist)
add_subdirectory(gs)
add_subdirectory(gs_compat)
+7
View File
@@ -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
)
+13
View File
@@ -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());
+6
View File
@@ -0,0 +1,6 @@
class CompatRegression extends GSController {
function Start()
{
print("Done...");
}
};
+2
View File
@@ -0,0 +1,2 @@
Done...
ERROR: The script died unexpectedly.
Binary file not shown.