From 18620381b66c9f90193bf69a88f5bbbc89fa2d53 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Tue, 30 Apr 2024 13:24:42 -0500 Subject: [PATCH] Run tests in %check Related: RHEL-30209 --- glib2.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/glib2.spec b/glib2.spec index 7ff52b2..2dd161c 100644 --- a/glib2.spec +++ b/glib2.spec @@ -16,12 +16,10 @@ BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gettext BuildRequires: perl-interpreter -# for sys/inotify.h BuildRequires: glibc-devel BuildRequires: libattr-devel BuildRequires: libselinux-devel BuildRequires: meson -# for sys/sdt.h BuildRequires: systemtap-sdt-devel BuildRequires: pkgconfig(gi-docgen) BuildRequires: pkgconfig(libelf) @@ -35,6 +33,11 @@ BuildRequires: /usr/bin/g-ir-scanner BuildRequires: /usr/bin/marshalparser BuildRequires: /usr/bin/rst2man +# Dependencies for tests +BuildRequires: shared-mime-info +BuildRequires: /usr/bin/dbus-daemon +BuildRequires: /usr/bin/update-desktop-database + # For gnutls-hmac.patch. We now dlopen libgnutls.so.30 so that we can build a # static glib2 without depending on a static build of GnuTLS as well. This will # ensure we notice if the GnuTLS soname bumps, so that we can update our patch. @@ -153,6 +156,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %transfiletriggerpostun -- %{_datadir}/glib-2.0/schemas glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : +%check +%meson_test + %files -f glib20.lang %license LICENSES/LGPL-2.1-or-later.txt %doc NEWS README.md