summaryrefslogtreecommitdiff
path: root/gui/tests/gtk-test.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-06-08 14:53:13 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-06-08 14:53:13 +0200
commit63aa6b86c211828c47027145ff405fd7e3fc5c3a (patch)
treeff77a5279b845b0fa2d5d5ef7c11de97a71c5c96 /gui/tests/gtk-test.cpp
parent0c5b0e03345d31406963e8ed8348a8c77ebe6352 (diff)
downloadturns-63aa6b86c211828c47027145ff405fd7e3fc5c3a.tar.xz
turns-63aa6b86c211828c47027145ff405fd7e3fc5c3a.zip
gui: wrap tests in application
Diffstat (limited to 'gui/tests/gtk-test.cpp')
-rw-r--r--gui/tests/gtk-test.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/gui/tests/gtk-test.cpp b/gui/tests/gtk-test.cpp
deleted file mode 100644
index 385f772..0000000
--- a/gui/tests/gtk-test.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
- * SPDX-License-Identifier: LGPL-2.1-only
- */
-
-#include "gtk-test.hpp"
-
-#include <turnsmm/init.hpp>
-
-#include <libintl.h>
-
-#include <clocale>
-
-namespace Turns::gui::tests
-{
-
- auto gtk_test::testRunStarting(Catch::TestRunInfo const &) -> void
- {
- setlocale(LC_ALL, "");
- bindtextdomain("turns", TESTLOCALEDIR);
- bind_textdomain_codeset("turns", "UTF-8");
- textdomain("turns");
-
- application = Adwaita::Application::create("ch.arknet.turns.tests.ui");
- Turns::init();
- }
-
- auto gtk_test::testRunEnded(Catch::TestRunStats const &) -> void
- {
- application->quit();
- application.reset();
- }
-
- auto gtk_test::testCaseEnded(Catch::TestCaseStats const &) -> void
- {
- setlocale(LC_ALL, "");
- }
-
-} // namespace Turns::Gui::tests \ No newline at end of file