Add pytest
This commit is contained in:
@@ -40,6 +40,7 @@ Recommends: tpm2-tools
|
|||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pytest
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with perl}
|
%if %{with perl}
|
||||||
@@ -286,6 +287,15 @@ install -d -m 0700 %{buildroot}%{_rundir}/strongswan
|
|||||||
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_tmpfilesdir}/strongswan.conf
|
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_tmpfilesdir}/strongswan.conf
|
||||||
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_tmpfilesdir}/strongswan-starter.conf
|
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_tmpfilesdir}/strongswan-starter.conf
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{with python}
|
||||||
|
pushd src/libcharon/plugins/vici
|
||||||
|
%pytest
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
:
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post strongswan.service strongswan-starter.service
|
%systemd_post strongswan.service strongswan-starter.service
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user