diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-04-16 10:34:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 10:34:39 +0200 |
commit | 200d9a734c18378abebee3ea7adac38782472587 (patch) | |
tree | 634f6130064832264a4206f438bc35a58d4b3348 /modules/gdscript/gdscript.cpp | |
parent | a3ca7844b39bacc11e126a4428297b39759032e5 (diff) | |
parent | b25ab27d4aeba4c4ac1fce4c818f2baa472687ab (diff) |
Merge pull request #47701 from vnen/gdscript-test-runner
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r-- | modules/gdscript/gdscript.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index c9c5d00aa5..5f590383d0 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -45,6 +45,10 @@ #include "gdscript_parser.h" #include "gdscript_warning.h" +#ifdef TESTS_ENABLED +#include "tests/gdscript_test_runner.h" +#endif + /////////////////////////// GDScriptNativeClass::GDScriptNativeClass(const StringName &p_name) { @@ -1766,6 +1770,10 @@ void GDScriptLanguage::init() { for (List<Engine::Singleton>::Element *E = singletons.front(); E; E = E->next()) { _add_global(E->get().name, E->get().ptr); } + +#ifdef TESTS_ENABLED + GDScriptTests::GDScriptTestRunner::handle_cmdline(); +#endif } String GDScriptLanguage::get_type() const { |