From f25a9ca10c6ba791b9d61fd42577585e7d642ae9 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Wed, 18 Oct 2023 23:33:04 +0000 Subject: [PATCH] Initial test of Hurd CI - (run_tests.sh status ignored) --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++ gio/tests/meson.build | 33 +++++++++++++++++++++------ gobject/tests/performance/meson.build | 6 ++++- 3 files changed, 62 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0a316fde9..9d99d51de 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -180,6 +180,37 @@ debian-stable-x86_64: - "_build/glib/glibconfig.h" - "_build/meson-logs" +hurd-i386: + extends: + - .build-linux + - .only-schedules + stage: build + tags: + - hurd + needs: [] + script: + - meson setup ${MESON_COMMON_OPTIONS} + --werror + --default-library=both + --prefix=$HOME/glib-installed + --localstatedir=/var + --libdir=lib + _build + - meson compile -C _build + - .gitlab-ci/run-tests.sh + artifacts: + reports: + junit: + - _build/meson-logs/testlog.junit.xml + - _build/meson-logs/testlog-*.junit.xml + name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" + when: always + expire_in: 1 week + paths: + - "_build/config.h" + - "_build/glib/glibconfig.h" + - "_build/meson-logs" + installed-tests: extends: - .build-linux diff --git a/gio/tests/meson.build b/gio/tests/meson.build index efb280fcd..c46421127 100644 --- a/gio/tests/meson.build +++ b/gio/tests/meson.build @@ -51,7 +51,8 @@ gio_tests = { 'application-command-line': {}, 'appmonitor' : { # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/1392 - 'can_fail' : host_system == 'darwin', + # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148 + 'can_fail' : host_system in ['darwin', 'gnu'], }, 'async-close-output-stream' : {}, 'async-splice-output-stream' : {}, @@ -81,7 +82,8 @@ gio_tests = { 'g-file' : {}, 'g-file-info' : { # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3070 - 'can_fail' : host_system == 'darwin' or host_system == 'windows' and cc.get_id() != 'gcc', + # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148 + 'can_fail' : host_system in ['darwin', 'gnu'] or host_system == 'windows' and cc.get_id() != 'gcc', }, 'g-icon' : {}, 'gdbus-addresses' : {}, @@ -90,7 +92,8 @@ gio_tests = { 'dependencies' : [libgdbus_example_objectmanager_dep], 'install_rpath' : installed_tests_execdir, # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/1392 - 'can_fail' : host_system in ['darwin', 'windows'], + # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148 + 'can_fail' : host_system in ['darwin', 'windows', 'gnu'], }, 'inet-address' : {}, 'io-stream' : {}, @@ -118,7 +121,8 @@ gio_tests = { 'sleepy-stream' : {}, 'socket' : { # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/1392 - 'can_fail' : host_system == 'darwin', + # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148 + 'can_fail' : host_system in ['darwin', 'gnu'], }, 'socket-listener' : {}, 'socket-service' : {}, @@ -137,7 +141,8 @@ gio_tests = { 'gdbus-address-get-session' : { 'extra_programs': host_system != 'windows' ? ['dbus-launch'] : [], # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/1392 - 'can_fail' : host_system == 'darwin', + # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148 + 'can_fail' : host_system in ['darwin', 'gnu'], }, 'win32-appinfo' : {}, } @@ -232,7 +237,10 @@ endif # Test programs buildable on UNIX only if host_machine.system() != 'windows' gio_tests += { - 'file' : {}, + 'file' : { + # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148 + 'can_fail' : host_system == 'gnu', + }, 'gdbus-peer-object-manager' : {}, 'gdbus-sasl' : {}, 'live-g-file' : {}, @@ -277,7 +285,10 @@ if host_machine.system() != 'windows' }, 'resolver-parsing' : {'dependencies' : [network_libs]}, 'socket-address' : {}, - 'stream-rw_all' : {}, + 'stream-rw_all' : { + # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148 + 'can_fail' : host_system == 'gnu', + }, 'unix-mounts' : {}, 'unix-streams' : {}, 'g-file-info-filesystem-readonly' : {}, @@ -319,11 +330,15 @@ if host_machine.system() != 'windows' 'appinfo' : { 'install' : false, 'extra_programs' : ['appinfo-test'], + # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148 + 'can_fail' : host_system == 'gnu', }, 'desktop-app-info' : { 'install' : false, 'depends' : gio_launch_desktop, 'extra_programs' : ['apps', 'appinfo-test'], + # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148 + 'can_fail' : host_system == 'gnu', }, } endif @@ -454,6 +469,8 @@ if host_machine.system() != 'windows' 'gdbus-proxy-threads' : { 'extra_sources' : extra_sources, 'dependencies' : [dbus1_dep], + # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148 + 'can_fail' : host_system == 'gnu', }, 'gdbus-proxy-unique-name' : { 'extra_sources' : extra_sources, @@ -556,6 +573,8 @@ if host_machine.system() != 'windows' '-DTEST_LOCALE_PATH="@0@"'.format(test_mo_dir)], 'install' : false, 'depends' : glib_compile_schemas, + # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148 + 'can_fail' : host_system == 'gnu', }, } endif diff --git a/gobject/tests/performance/meson.build b/gobject/tests/performance/meson.build index 2984a6c28..0147f7c85 100644 --- a/gobject/tests/performance/meson.build +++ b/gobject/tests/performance/meson.build @@ -1,5 +1,9 @@ gobject_tests = { - 'performance' : { 'args' : [ '--seconds', '0' ] }, + 'performance' : { + 'args' : [ '--seconds', '0' ], + # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148 + 'can_fail' : host_system == 'gnu', + }, 'performance-threaded' : { 'args' : [ '--seconds', '0' ] }, }