!48 [sync] PR-46: 【openEuler-20.03-LTS-SP1】Use macro to control whether to enable make check

From: @openeuler-sync-bot 
Reviewed-by: @HuaxinLuGitee 
Signed-off-by: @HuaxinLuGitee
This commit is contained in:
openeuler-ci-bot 2023-02-13 02:26:50 +00:00 committed by Gitee
commit c712626e13
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,9 +2,11 @@
%global sysctl_optmem_max 81920
%global distroname_ext %{_vendor}
%bcond_with enable_test
Name: libkcapi
Version: 1.2.0
Release: 5
Release: 6
Summary: libkcapi - Linux Kernel Crypto API User Space Interface Library
License: BSD or GPLv2
@ -155,6 +157,7 @@ bin/kcapi-hasher -n fipshmac -d %{buildroot}/%{_lib}/fipscheck %{buildroot}/%{
ln -s libkcapi.so.%{version}.hmac %{buildroot}/%{_lib}/fipscheck/libkcapi.so.1.hmac
%check
%if %{with enable_test}
for t in cppcheck scan;do
%make_build $t
done
@ -174,6 +177,7 @@ NO_32BIT_TEST=1 \
./test-invocation.sh ||:
popd
fi
%endif
%files
%doc %dir %{_pkgdocdir}
@ -204,6 +208,9 @@ fi
%{_mandir}/man3/kcapi_*.3.*
%changelog
* Thu Feb 9 2023 yixiangzhike <yixiangzhike007@163.com> - 1.2.0-6
- Use macro to control whether to enable make check
* Wed Feb 8 2023 yixiangzhike <yixiangzhike007@163.com> - 1.2.0-5
- Enable make check