mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-22 20:47:28 +01:00
Test that GameStaticFiles work in live tests
This commit is contained in:
@@ -31,6 +31,23 @@
|
||||
if(!fexists("[DME_NAME].rsc"))
|
||||
FailTest("Failed to create .rsc!")
|
||||
|
||||
#ifdef RUN_STATIC_FILE_TESTS
|
||||
if(params["expect_static_files"])
|
||||
if(!fexists("test2.txt"))
|
||||
FailTest("Missing test2.txt")
|
||||
|
||||
var/f2content = file2text("test2.txt")
|
||||
if(f2content != "bbb")
|
||||
FailTest("Unexpected test2.txt content: [f2content]")
|
||||
|
||||
if(!fexists("data/test.txt"))
|
||||
FailTest("Missing data/test.txt")
|
||||
|
||||
var/f1content = file2text("data/test.txt")
|
||||
if(f1content != "aaa")
|
||||
FailTest("Unexpected data/test.txt content: [f1content]")
|
||||
#endif
|
||||
|
||||
StartAsync()
|
||||
|
||||
/proc/dab()
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
// END_PREFERENCES
|
||||
|
||||
// BEGIN_INCLUDE
|
||||
#define RUN_STATIC_FILE_TESTS
|
||||
#define DME_NAME "long_running_test_rooted"
|
||||
#include "tests/DMAPI/LongRunning/Config.dm"
|
||||
#include "tests/DMAPI/test_prelude.dm"
|
||||
#include "tests/DMAPI/LongRunning/Test.dm"
|
||||
|
||||
Reference in New Issue
Block a user