virtualx-engine/platform/linuxbsd
Andrii Doroshenko (Xrayez) 6f426c3360 Port ClassDB tests to use doctest
Extracted the most minimal core initialization functionality from
`setup()` and `setup2()` so that `ClassDB` could be tested properly
(input, audio, rendering, physics etc, are excluded).

Display and rendering servers/singletons are not initialized at all.

Due to the fact that most subsystems are disabled, fixed various crashes in the
process (in order):
- `AcceptDialog` OK/cancel swap behavior (used `DisplayServer` while
  `register_scene_types()`);
- `make_default_theme` which depends on `RenderingServer`;
- `XRServer` singleton access while calling `register_modules_types()`;
- hidden bug in a way joypads are cleaned up (MacOS and Linux only).

Removed manual `ClassDB` init/cleanup calls from `test_validate_testing.h`.

ClassDB tests:

Co-authored-by: Ignacio Etcheverry <ignalfonsore@gmail.com>
2020-08-16 16:41:02 +03:00
..
export Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
context_gl_x11.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
context_gl_x11.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
crash_handler_linuxbsd.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
crash_handler_linuxbsd.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
detect.py SCons: Remove unused DEBUG_MEMORY_ENABLED define 2020-07-23 09:39:10 +02:00
detect_prime_x11.cpp Style: clang-format: Disable AllowShortIfStatementsOnASingleLine 2020-05-10 13:12:16 +02:00
detect_prime_x11.h Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
display_server_x11.cpp Remove obsolete GLES2 backend code 2020-08-13 10:04:53 +02:00
display_server_x11.h Fix losing X11 window normal size hint properties 2020-07-31 17:32:46 +02:00
godot_linuxbsd.cpp t Add unit testing to Godot using DocTest and added to GitHub Actions CI 2020-07-24 13:05:33 +01:00
joypad_linux.cpp Update Linux gamepad detection to match SDL. 2020-07-22 10:17:39 +01:00
joypad_linux.h Rename InputFilter back to Input 2020-04-28 15:19:49 +02:00
key_mapping_x11.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
key_mapping_x11.h Port member initialization from constructor to declaration (C++11) 2020-05-14 10:01:56 +02:00
logo.png Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
os_linuxbsd.cpp Port ClassDB tests to use doctest 2020-08-16 16:41:02 +03:00
os_linuxbsd.h Port ClassDB tests to use doctest 2020-08-16 16:41:02 +03:00
pck_embed.ld Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
pck_embed.legacy.ld Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
platform_config.h Remove obsolete GLES2 backend code 2020-08-13 10:04:53 +02:00
platform_linuxbsd_builders.py SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
vulkan_context_x11.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
vulkan_context_x11.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00