From f597be870eec6d04de6bed0effa7dd23bcb72bf8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 11 Jul 2024 13:17:03 +0200 Subject: initial commit --- res/tests/main.cpp | 12 ++++++++++++ res/tests/windows.cpp | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 res/tests/main.cpp create mode 100644 res/tests/windows.cpp (limited to 'res/tests') diff --git a/res/tests/main.cpp b/res/tests/main.cpp new file mode 100644 index 0000000..02173f9 --- /dev/null +++ b/res/tests/main.cpp @@ -0,0 +1,12 @@ +#include + +#include +#include + +auto main(int argc, char * argv[]) -> int +{ + Gtk::init_gtkmm_internals(); + adw_init(); + + return Catch::Session().run(argc, argv); +} \ No newline at end of file diff --git a/res/tests/windows.cpp b/res/tests/windows.cpp new file mode 100644 index 0000000..9daab51 --- /dev/null +++ b/res/tests/windows.cpp @@ -0,0 +1,13 @@ +#include + +#include + +TEST_CASE("GResource for main_window") +{ + auto builder = Gtk::Builder::create_from_resource("/turns/windows/main_window.ui"); + + SECTION("can create Gtk.Builder for the main window UI definition") + { + REQUIRE(builder); + } +} \ No newline at end of file -- cgit v1.2.3