summaryrefslogtreecommitdiff
path: root/res/tests
diff options
context:
space:
mode:
Diffstat (limited to 'res/tests')
-rw-r--r--res/tests/main.cpp12
-rw-r--r--res/tests/windows.cpp13
2 files changed, 25 insertions, 0 deletions
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 <catch2/catch_session.hpp>
+
+#include <adwaita.h>
+#include <gtkmm/init.h>
+
+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 <catch2/catch_test_macros.hpp>
+
+#include <gtkmm/builder.h>
+
+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