public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libreswan] rawhide: testing: run more upstream tests from _*check
@ 2026-08-25 19:21 Paul Wouters
  0 siblings, 0 replies; only message in thread
From: Paul Wouters @ 2026-08-25 19:21 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libreswan
Branch : rawhide
Commit : 6ffe6a93fb69b7cb21e5ea7d1aabbd81c72ab483
Author : Paul Wouters <paul.wouters@aiven.io>
Date   : 2026-08-25T15:21:08-04:00
Stats  : +10/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/libreswan/c/6ffe6a93fb69b7cb21e5ea7d1aabbd81c72ab483?branch=rawhide

Log:
testing: run more upstream tests from _*check

---
diff --git a/libreswan.spec b/libreswan.spec
index b38e06f..4c62740 100644
--- a/libreswan.spec
+++ b/libreswan.spec
@@ -159,10 +159,13 @@ FS=$(pwd)
     %{libreswan_config} \
 FS=$(pwd)
 rm -rf %{buildroot}/usr/share/doc/libreswan
-rm -rf %{buildroot}%{_libexecdir}/ipsec/*check
-# avoids python depency and are old / aging tools that are not very useful
-rm -rf %{buildroot}%{_libexecdir}/ipsec/show
-rm -rf %{buildroot}%{_libexecdir}/ipsec/verify
+mkdir %{_builddir}/check
+mv %{buildroot}%{_libexecdir}/ipsec/*check %{_builddir}/check/
+# _ipcheck needs network, so remove it.
+rm %{_builddir}/check/_ipcheck
+# some tests needs custom options
+rm %{_builddir}/check/_seedbitscheck
+rm %{_builddir}/check/_ttodatacheck
 
 install -d -m 0755 %{buildroot}%{_rundir}/pluto
 install -d %{buildroot}%{_sbindir}
@@ -199,6 +202,9 @@ bunzip2 *.fax.bz2
 %{buildroot}%{_libexecdir}/ipsec/algparse --tp || { echo prooposal test failed; exit 1; }
 %{buildroot}%{_libexecdir}/ipsec/algparse --ta || { echo algorithm test failed; exit 1; }
 : Algorithm parser tests passed
+for t in %{_builddir}/check/_*check; do
+    $t || { echo $t test failed; exit 1; }
+done
 
 # self test for pluto daemon - this also shows which algorithms it allows in FIPS mode
 tmpdir=$(mktemp -d /tmp/libreswan-XXXXX)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-25 19:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-25 19:21 [rpms/libreswan] rawhide: testing: run more upstream tests from _*check Paul Wouters

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox