From e8ad0f7bbb7fdf82a0f0be128bab07b5928322f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Fri, 9 Dec 2022 14:56:22 +0100 Subject: [PATCH] Enable few unit tests during build Upstream contains some unit tests, but they have to be explicitly enabled during configure. Enable them and run them during check phase. --- avahi.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/avahi.spec b/avahi.spec index 76231ca..0188edb 100644 --- a/avahi.spec +++ b/avahi.spec @@ -1,4 +1,5 @@ %bcond_with bootstrap +%bcond_without check %if %{without bootstrap} %{?!WITH_MONO: %global WITH_MONO 1} @@ -487,6 +488,9 @@ NOCONFIGURE=1 ./autogen.sh --enable-shared=yes \ --enable-static=no \ --disable-silent-rules \ +%if %{with check} + --enable-tests \ +%endif %if %{WITH_GTK2} --enable-gtk \ %else @@ -576,6 +580,9 @@ rm -fv %{buildroot}%{_sysconfdir}/rc.d/init.d/avahi-dnsconfd %check +%if %{with check} + %make_build check +%endif %if %{without bootstrap} for i in %{buildroot}%{_datadir}/applications/b*.desktop ; do desktop-file-validate $i @@ -872,6 +879,7 @@ exit 0 %changelog * Sun Mar 19 2023 Petr Menšík - 0.8-22 +- Enable unit tests during check - Prevent crashes on some invalid DBus calls - Provide versioned howl compatibility package - Correct bootstrap option