setools:打开测试用例

Signed-off-by: jinlun <jinlun@huawei.com>
(cherry picked from commit c7941715dca78c5c22f36bcfe81a37425dcd19f5)
This commit is contained in:
jinlun 2023-02-16 01:19:56 +00:00 committed by openeuler-sync-bot
parent 3e85e0f79e
commit d48c3916c1

View File

@ -1,6 +1,6 @@
Name: setools
Version: 4.4.0
Release: 4
Release: 5
Summary: Policy Analysis Tools for SELinux
License: GPLv2
URL: https://github.com/SELinuxProject/setools/wiki
@ -15,7 +15,7 @@ BuildRequires: flex bison glibc-devel gcc swig git python3-setuptools
BuildRequires: qt5-qtbase-devel python3-devel
BuildRequires: libsepol-devel >= 3.2 libsepol-static >= 3.2 libselinux-devel
BuildRequires: python3-Cython
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools python3-networkx checkpolicy
Obsoletes: setools < 4.0.0, setools-devel < 4.0.0
%description
@ -73,9 +73,9 @@ Gui packages for setools.
%py3_install
%check
%if %{?_with_check:1}%{!?_with_check:0}
sed -i "s#from setools import InfoFlowAnalysis#from setools.infoflow import InfoFlowAnalysis#" ./tests/conditionalinfoflow.py
%{__python3} setup.py test
%endif
%files
@ -110,6 +110,9 @@ Gui packages for setools.
%{_mandir}/ru/man1/*
%changelog
* Thu Feb 16 2023 jinlun <jinlun@huawei.com> - 4.4.0-5
- add code check
* Wed Jan 4 2023 jinlun <jinlun@huawei.com> - 4.4.0-4
- add Requires in gui