fish.spec: run all tests

This commit is contained in:
David Adam 2019-01-05 17:28:37 +08:00
parent 2c01e67a74
commit 4548f4f4b0

View file

@ -25,6 +25,13 @@ BuildRequires: gcc48 gcc48-c++
BuildRequires: pcre2-devel BuildRequires: pcre2-devel
%endif %endif
# for tests
BuildRequires: expect
%if 0%{?fedora}
# Need the en_US.utf-8 locale at a minimum
BuildRequires: glibc-langpack-en
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: python Requires: python
@ -73,6 +80,13 @@ make %{?_smp_mflags}
%endif %endif
%find_lang %{name} %find_lang %{name}
%check
# OpenSUSE does out-of-tree builds and defines __builddir
%if 0%{?__builddir:1}
cd %__builddir
%endif
make test
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT