7 Commits
Author SHA1 Message Date
obligaron ebfb519ee0 Rename gbQuietMode to HeadlessMode 2022-07-13 18:54:36 +02:00
obligaron bac5c1a2e5 Fix compiling tests with sdl 1 2021-12-19 11:28:06 +00:00
obligaron 9a14edfcd9 Add OptionEntries for Hardware Cursor 2021-12-17 20:12:17 +01:00
Gleb Mazovetskiy 2efa5e4ee2 CMake: Place tests where everything else is
This should hopefully fix DLL lookup on Windows (#3778)
2021-12-17 17:16:29 +00:00
Gleb Mazovetskiy 076b0c0c05 Overhaul tests
1. Adds a `libdevilution_so` target when tests are enabled.
2. Each test file is now a separate binary target linked against `libdevilutionx_so` (can now run tests in parallel).
3. Tests are now defined in a separate `test/CMakeLists.txt` file.
4. Building the tests is now controlled by the standard `BUILD_TESTING` option (defined by CTest).
5. Tests are now built by default.
6. On CI, test errors are now reported.

Also:

* `.clang-format`: Enable SortIncludes in tests
* `path_test.cpp`: Fix -Wsign-compare
2021-12-16 20:26:51 +00:00
obligaron 76103eeb7f Replace C++ RUN_TEST define with gbQuietMode 2021-05-15 02:08:26 +02:00
obligaron 6fb1b0fed9 Seperate main(...) for binary and tests 2021-05-15 02:08:26 +02:00