Be explicit about usage of GDScript tests
Also drop empty "image" test, and print proper error when passing wrong test name. Fixes #25638.
This commit is contained in:
parent
f614f15506
commit
c363857426
5 changed files with 8 additions and 125 deletions
|
|
@ -36,7 +36,6 @@
|
|||
#include "test_astar.h"
|
||||
#include "test_gdscript.h"
|
||||
#include "test_gui.h"
|
||||
#include "test_image.h"
|
||||
#include "test_math.h"
|
||||
#include "test_oa_hash_map.h"
|
||||
#include "test_ordered_hash_map.h"
|
||||
|
|
@ -61,7 +60,6 @@ const char **tests_get_names() {
|
|||
"gd_parser",
|
||||
"gd_compiler",
|
||||
"gd_bytecode",
|
||||
"image",
|
||||
"ordered_hash_map",
|
||||
"astar",
|
||||
NULL
|
||||
|
|
@ -134,11 +132,6 @@ MainLoop *test_main(String p_test, const List<String> &p_args) {
|
|||
return TestGDScript::test(TestGDScript::TEST_BYTECODE);
|
||||
}
|
||||
|
||||
if (p_test == "image") {
|
||||
|
||||
return TestImage::test();
|
||||
}
|
||||
|
||||
if (p_test == "ordered_hash_map") {
|
||||
|
||||
return TestOrderedHashMap::test();
|
||||
|
|
@ -149,6 +142,7 @@ MainLoop *test_main(String p_test, const List<String> &p_args) {
|
|||
return TestAStar::test();
|
||||
}
|
||||
|
||||
print_line("Unknown test: " + p_test);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue