From 3cff964ecb1395acfaf13a853934c871a2b35484 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 6 Feb 2024 10:20:00 +0100 Subject: test: rename main.cpp -> app.cpp --- test/app.cpp | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/main.cpp | 62 ----------------------------------------------------------- 2 files changed, 62 insertions(+), 62 deletions(-) create mode 100644 test/app.cpp delete mode 100644 test/main.cpp diff --git a/test/app.cpp b/test/app.cpp new file mode 100644 index 00000000..7eb2b6af --- /dev/null +++ b/test/app.cpp @@ -0,0 +1,62 @@ +#include "app.hpp" +#include "compat/assert.hpp" +#include "loader/loader.hpp" +#include +#include + +namespace floormat { + +test_app::test_app(const Arguments& arguments): + Application { + arguments, + Configuration{} + } +{ +} + +test_app::~test_app() +{ + loader.destroy(); +} + +int test_app::exec() +{ + test_coords(); + test_json(); + test_tile_iter(); + test_magnum_math(); + test_entity(); + test_math(); + test_hash(); + test_intrusive_ptr(); + test_loader(); + test_bitmask(); + test_wall_atlas(); + test_wall_atlas2(); + test_serializer_1(); + test_serializer_2(); + test_scenery(); + test_raycast(); + test_path_search_node_pool(); + test_path_search(); + test_dijkstra(); + + zzz_test_misc(); + + return 0; +} + +} // namespace floormat + +int main(int argc, char** argv) +{ +#ifdef _WIN32 + // NOLINTNEXTLINE(concurrency-mt-unsafe) + if (const auto* s = std::getenv("MAGNUM_LOG"); !s || !*s) + _putenv("MAGNUM_LOG=quiet"); +#else + setenv("MAGNUM_LOG", "quiet", 0); +#endif + floormat::test_app application{{argc, argv}}; + return application.exec(); +} diff --git a/test/main.cpp b/test/main.cpp deleted file mode 100644 index 7eb2b6af..00000000 --- a/test/main.cpp +++ /dev/null @@ -1,62 +0,0 @@ -#include "app.hpp" -#include "compat/assert.hpp" -#include "loader/loader.hpp" -#include -#include - -namespace floormat { - -test_app::test_app(const Arguments& arguments): - Application { - arguments, - Configuration{} - } -{ -} - -test_app::~test_app() -{ - loader.destroy(); -} - -int test_app::exec() -{ - test_coords(); - test_json(); - test_tile_iter(); - test_magnum_math(); - test_entity(); - test_math(); - test_hash(); - test_intrusive_ptr(); - test_loader(); - test_bitmask(); - test_wall_atlas(); - test_wall_atlas2(); - test_serializer_1(); - test_serializer_2(); - test_scenery(); - test_raycast(); - test_path_search_node_pool(); - test_path_search(); - test_dijkstra(); - - zzz_test_misc(); - - return 0; -} - -} // namespace floormat - -int main(int argc, char** argv) -{ -#ifdef _WIN32 - // NOLINTNEXTLINE(concurrency-mt-unsafe) - if (const auto* s = std::getenv("MAGNUM_LOG"); !s || !*s) - _putenv("MAGNUM_LOG=quiet"); -#else - setenv("MAGNUM_LOG", "quiet", 0); -#endif - floormat::test_app application{{argc, argv}}; - return application.exec(); -} -- cgit v1.2.3