diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-11-24 19:07:27 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-11-24 20:03:39 +0100 |
commit | 92fae633a0d9e6f0edaa379595ef999161d3643d (patch) | |
tree | 6029a7c721fd6f78fa3a442987e92917c524cf89 /gio/tests/meson.build | |
parent | e6eebfd9c344bd16873728258f7c29bb63b255d2 (diff) | |
download | glib-92fae633a0d9e6f0edaa379595ef999161d3643d.tar.gz |
gio/tests: Add tests for flatpak infos
Support testing flatpak infos, we do it by faking /.flatpak-info file in
case we're building in test mode.
Diffstat (limited to 'gio/tests/meson.build')
-rw-r--r-- | gio/tests/meson.build | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gio/tests/meson.build b/gio/tests/meson.build index 1fc5258aa..66b650376 100644 --- a/gio/tests/meson.build +++ b/gio/tests/meson.build @@ -109,6 +109,7 @@ gio_tests = { 'readwrite' : {}, 'sandbox' : { 'extra_sources': ['../gsandbox.c', 'portal-support-utils.c'], + 'c_args': ['-DG_PORTAL_SUPPORT_TEST'], }, 'simple-async-result' : {}, 'simple-proxy' : {}, @@ -227,6 +228,26 @@ if host_machine.system() != 'windows' 'gdbus-peer-object-manager' : {}, 'gdbus-sasl' : {}, 'live-g-file' : {}, + 'portal-support-flatpak-none' : { + 'extra_sources': ['../gportalsupport.c', '../gsandbox.c', 'portal-support-utils.c'], + 'c_args': ['-DG_PORTAL_SUPPORT_TEST'], + 'suite': ['portal-support'], + }, + 'portal-support-flatpak-full' : { + 'extra_sources': ['../gportalsupport.c', '../gsandbox.c', 'portal-support-utils.c'], + 'c_args': ['-DG_PORTAL_SUPPORT_TEST'], + 'suite': ['portal-support'], + }, + 'portal-support-flatpak-network-only' : { + 'extra_sources': ['../gportalsupport.c', '../gsandbox.c', 'portal-support-utils.c'], + 'c_args': ['-DG_PORTAL_SUPPORT_TEST'], + 'suite': ['portal-support'], + }, + 'portal-support-flatpak-gsettings-only' : { + 'extra_sources': ['../gportalsupport.c', '../gsandbox.c', 'portal-support-utils.c'], + 'c_args': ['-DG_PORTAL_SUPPORT_TEST'], + 'suite': ['portal-support'], + }, 'portal-support-none' : { 'extra_sources': ['../gportalsupport.c', '../gsandbox.c'], 'c_args': ['-DG_PORTAL_SUPPORT_TEST'], |