Run tests in %check

Related: RHEL-30209
This commit is contained in:
Michael Catanzaro 2024-04-30 13:24:42 -05:00 committed by Michael Catanzaro
parent a29510ef60
commit 18620381b6

View File

@ -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