From b097119cff0bbe5255ef817c67f3e93832f79569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Thu, 11 Nov 2021 05:17:50 +0100 Subject: [PATCH] Add pytest --- strongswan.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/strongswan.spec b/strongswan.spec index ced213e..5c89f1a 100644 --- a/strongswan.spec +++ b/strongswan.spec @@ -40,6 +40,7 @@ Recommends: tpm2-tools %if %{with python3} BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pytest %endif %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-starter.conf + +%check +%if %{with python} + pushd src/libcharon/plugins/vici + %pytest + popd +%endif +: + %post %systemd_post strongswan.service strongswan-starter.service