summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <wjt@endlessos.org>2022-07-08 11:18:10 +0100
committerWill Thompson <wjt@endlessos.org>2022-07-08 11:18:10 +0100
commit4698ce731ea00f9d45f52ee876ca1c314b9f3f9b (patch)
treef5303421cbe868e073a910f1e778df3fd98d5485
parent1572dd2f31b2ae6e10208652dbce74220aee356f (diff)
downloadgnome-initial-setup-wip/wjt/smoke-test.tar.gz
Smoke-test gnome-initial-setup --helpwip/wjt/smoke-test
Initial Setup is currently crashing on startup in GNOME OS with: (process:2603): libsoup-ERROR **: 07:05:13.282: libsoup2 symbols detected. Using libsoup2 and libsoup3 in the same process is not supported. This is because Initial Setup was built against soup3 and with parental controls enabled; unfortunately, malcontent-ui links to libflatpak and libostree which are currently built with soup2. Similar scenarios may occur in the future. In lieu of an actual test suite, test that 'gnome-initial-setup --help' succeeds. https://gitlab.gnome.org/GNOME/gnome-build-meta/-/issues/513
-rw-r--r--gnome-initial-setup/meson.build10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnome-initial-setup/meson.build b/gnome-initial-setup/meson.build
index 62b7fd1..199aeed 100644
--- a/gnome-initial-setup/meson.build
+++ b/gnome-initial-setup/meson.build
@@ -102,7 +102,7 @@ dependencies = [
webkitgtk_dep
]
-executable(
+gnome_initial_setup_exe = executable(
'gnome-initial-setup',
sources,
include_directories: config_h_dir,
@@ -111,6 +111,14 @@ executable(
install_dir: get_option('libexecdir')
)
+# Smoke-test to ensure the binary actually runs. This catches, for example,
+# transitively linking against two different versions of libsoup.
+test(
+ 'gnome-initial-setup--help',
+ gnome_initial_setup_exe,
+ args: ['--help'],
+)
+
executable(
'gnome-initial-setup-copy-worker',
['gnome-initial-setup-copy-worker.c'],