summaryrefslogtreecommitdiff
path: root/tests/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'tests/meson.build')
-rw-r--r--tests/meson.build18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build
index f072d3f..84b6847 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -52,6 +52,7 @@ if system == 'linux' or system == 'darwin'
exported_headers = files(
'../include/yasl/yasl.h',
'../include/yasl/app.h',
+ '../include/yasl/desktop.h',
'../include/yasl/timing.h',
'../include/yasl/loop.h',
'../include/yasl/native.h',
@@ -117,6 +118,23 @@ loop_test = executable(
)
test('loop', loop_test)
+if system == 'linux'
+ desktop_test = executable(
+ 'yasl-desktop-test',
+ 'common/test_desktop.c',
+ include_directories: inc,
+ dependencies: [yasl_dep, dependency('threads')],
+ )
+ # A private session bus keeps the notification and portal checks away
+ # from the user's desktop.
+ dbus_run_session = find_program('dbus-run-session', required: false)
+ if has_dbus and dbus_run_session.found()
+ test('desktop', dbus_run_session, args: ['--', desktop_test])
+ else
+ test('desktop', desktop_test)
+ endif
+endif
+
app_test = executable(
'yasl-app-test',
'common/test_app.c',