summaryrefslogtreecommitdiff
path: root/tests/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'tests/meson.build')
-rw-r--r--tests/meson.build26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build
index c0ec9fb..4c02ccd 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -10,6 +10,7 @@
# meson test -C build
# ninja -C build coverage (needs lcov + genhtml)
+# --- unit track ---
test_bootstrap = executable(
'test_bootstrap',
['test_bootstrap.c', ggaze_conf_h],
@@ -19,4 +20,29 @@ test_bootstrap = executable(
)
test('bootstrap', test_bootstrap, suite : 'unit')
+# test_app runs the ggaze binary as a subprocess; meson passes its path.
+test_app = executable(
+ 'test_app',
+ ['test_app.c', ggaze_conf_h],
+ include_directories : inc,
+ dependencies : [glib_dep, gio_dep],
+ install : false,
+)
+test('app', test_app,
+ suite : 'unit',
+ args : [ggaze_exe.full_path()],
+ depends : ggaze_exe,
+)
+
+# --- integration track (needs a display; CI uses xvfb-run) ---
+test_window = executable(
+ 'test_window',
+ ['test_window.c', ggaze_conf_h],
+ include_directories : [inc, src_inc],
+ dependencies : ggaze_deps,
+ link_with : ggaze_lib,
+ install : false,
+)
+test('window', test_window, suite : 'integration')
+
subdir('integration') \ No newline at end of file