add gui test engine to yaze_test for integration tests
This commit is contained in:
@@ -28,11 +28,12 @@ add_executable(
|
|||||||
app/core/common.cc
|
app/core/common.cc
|
||||||
app/core/labeling.cc
|
app/core/labeling.cc
|
||||||
app/editor/utils/gfx_context.cc
|
app/editor/utils/gfx_context.cc
|
||||||
|
${ASAR_STATIC_SRC}
|
||||||
${YAZE_APP_EMU_SRC}
|
${YAZE_APP_EMU_SRC}
|
||||||
${YAZE_APP_GFX_SRC}
|
${YAZE_APP_GFX_SRC}
|
||||||
${YAZE_GUI_SRC}
|
${YAZE_GUI_SRC}
|
||||||
lib/imgui/misc/cpp/imgui_stdlib.cpp
|
${IMGUI_SRC}
|
||||||
${ASAR_STATIC_SRC}
|
${IMGUI_TEST_ENGINE_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
#define SDL_MAIN_HANDLED
|
#define SDL_MAIN_HANDLED
|
||||||
|
|
||||||
|
#include <SDL.h>
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
#include "absl/debugging/failure_signal_handler.h"
|
#include "absl/debugging/failure_signal_handler.h"
|
||||||
@@ -9,6 +11,16 @@ int main(int argc, char* argv[]) {
|
|||||||
|
|
||||||
absl::FailureSignalHandlerOptions options;
|
absl::FailureSignalHandlerOptions options;
|
||||||
absl::InstallFailureSignalHandler(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);
|
::testing::InitGoogleTest(&argc, argv);
|
||||||
return RUN_ALL_TESTS();
|
return RUN_ALL_TESTS();
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user