From 1c706b94430301f8285f6a497760538caaf12591 Mon Sep 17 00:00:00 2001 From: scawful Date: Sun, 11 Aug 2024 13:14:23 -0400 Subject: [PATCH] add integration arg to yaze_test for test_engine window --- src/test/yaze_test.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/yaze_test.cc b/src/test/yaze_test.cc index b972ad10..2772a521 100644 --- a/src/test/yaze_test.cc +++ b/src/test/yaze_test.cc @@ -1,4 +1,6 @@ #define SDL_MAIN_HANDLED + +#include #include #include "absl/debugging/failure_signal_handler.h" @@ -9,6 +11,16 @@ int main(int argc, char* argv[]) { absl::FailureSignalHandlerOptions options; absl::InstallFailureSignalHandler(options); + + // Support the ability to launch an integration test window. + SDL_SetMainReady(); + + // Check if the argument says `integration` + if (argc > 1 && std::string(argv[1]) == "integration") { + // TODO: Create the debugging window with the test engine. + return EXIT_SUCCESS; + } + ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } \ No newline at end of file