From 4548f4f4b0fae8d3cb6869b84fc8940786d6d325 Mon Sep 17 00:00:00 2001 From: David Adam Date: Sat, 5 Jan 2019 17:28:37 +0800 Subject: [PATCH] fish.spec: run all tests --- fish.spec.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fish.spec.in b/fish.spec.in index 1793ae48d..2acffd0e9 100644 --- a/fish.spec.in +++ b/fish.spec.in @@ -25,6 +25,13 @@ BuildRequires: gcc48 gcc48-c++ BuildRequires: pcre2-devel %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) Requires: python @@ -73,6 +80,13 @@ make %{?_smp_mflags} %endif %find_lang %{name} +%check +# OpenSUSE does out-of-tree builds and defines __builddir +%if 0%{?__builddir:1} +cd %__builddir +%endif +make test + %clean rm -rf $RPM_BUILD_ROOT