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.
This commit is contained in:
parent
df02cf92b5
commit
e8ad0f7bbb
@ -1,4 +1,5 @@
|
|||||||
%bcond_with bootstrap
|
%bcond_with bootstrap
|
||||||
|
%bcond_without check
|
||||||
|
|
||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
%{?!WITH_MONO: %global WITH_MONO 1}
|
%{?!WITH_MONO: %global WITH_MONO 1}
|
||||||
@ -487,6 +488,9 @@ NOCONFIGURE=1 ./autogen.sh
|
|||||||
--enable-shared=yes \
|
--enable-shared=yes \
|
||||||
--enable-static=no \
|
--enable-static=no \
|
||||||
--disable-silent-rules \
|
--disable-silent-rules \
|
||||||
|
%if %{with check}
|
||||||
|
--enable-tests \
|
||||||
|
%endif
|
||||||
%if %{WITH_GTK2}
|
%if %{WITH_GTK2}
|
||||||
--enable-gtk \
|
--enable-gtk \
|
||||||
%else
|
%else
|
||||||
@ -576,6 +580,9 @@ rm -fv %{buildroot}%{_sysconfdir}/rc.d/init.d/avahi-dnsconfd
|
|||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with check}
|
||||||
|
%make_build check
|
||||||
|
%endif
|
||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
for i in %{buildroot}%{_datadir}/applications/b*.desktop ; do
|
for i in %{buildroot}%{_datadir}/applications/b*.desktop ; do
|
||||||
desktop-file-validate $i
|
desktop-file-validate $i
|
||||||
@ -872,6 +879,7 @@ exit 0
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Mar 19 2023 Petr Menšík <pemensik@redhat.com> - 0.8-22
|
* Sun Mar 19 2023 Petr Menšík <pemensik@redhat.com> - 0.8-22
|
||||||
|
- Enable unit tests during check
|
||||||
- Prevent crashes on some invalid DBus calls
|
- Prevent crashes on some invalid DBus calls
|
||||||
- Provide versioned howl compatibility package
|
- Provide versioned howl compatibility package
|
||||||
- Correct bootstrap option
|
- Correct bootstrap option
|
||||||
|
Loading…
Reference in New Issue
Block a user