SPEC: Run cmocka based unit test in %check phase

This patch also consolidate build dependencies for
c based unit tests

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Lukas Slebodnik 2015-11-13 07:11:38 +00:00 committed by Martin Basti
parent be6ecac220
commit 5594205628

View File

@ -78,7 +78,6 @@ BuildRequires: python-lxml
BuildRequires: python-pyasn1 >= 0.0.9a BuildRequires: python-pyasn1 >= 0.0.9a
BuildRequires: python-qrcode-core >= 5.0.0 BuildRequires: python-qrcode-core >= 5.0.0
BuildRequires: python-dns >= 1.11.1 BuildRequires: python-dns >= 1.11.1
BuildRequires: check
BuildRequires: libsss_idmap-devel BuildRequires: libsss_idmap-devel
BuildRequires: libsss_nss_idmap-devel >= 1.12.2 BuildRequires: libsss_nss_idmap-devel >= 1.12.2
BuildRequires: java-headless BuildRequires: java-headless
@ -99,6 +98,10 @@ BuildRequires: python-six
BuildRequires: python-jwcrypto BuildRequires: python-jwcrypto
BuildRequires: custodia BuildRequires: custodia
# Build dependencies for unit tests
BuildRequires: libcmocka-devel
BuildRequires: nss_wrapper
%description %description
IPA is an integrated solution to provide centrally managed Identity (users, IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization hosts, services), Authentication (SSO, 2FA), and Authorization
@ -405,6 +408,9 @@ make IPA_VERSION_IS_GIT_SNAPSHOT=no %{?_smp_mflags} all
make IPA_VERSION_IS_GIT_SNAPSHOT=no %{?_smp_mflags} client make IPA_VERSION_IS_GIT_SNAPSHOT=no %{?_smp_mflags} client
%endif # ONLY_CLIENT %endif # ONLY_CLIENT
%check
make %{?_smp_mflags} check VERBOSE=yes
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
export SUPPORTED_PLATFORM=%{platform_module} export SUPPORTED_PLATFORM=%{platform_module}