[gnutls-devel] GnuTLS | system-override-compress-cert testsuite error with 3.8.10 (#1721)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Thu Jul 10 13:50:07 CEST 2025
Andreas Metzler commented on a discussion: https://gitlab.com/gnutls/gnutls/-/issues/1721#note_2617513304
e.g. like this:
```diff
--- /tmp/system-override-compress-cert.sh 2025-07-10 13:30:26.254421764 +0200
+++ /tmp/system-override-compress-cert.sh.new 2025-07-10 13:49:34.130769458 +0200
@@ -30,16 +30,21 @@
exit 77
fi
-if ! "$CLI" --list | grep '^Compression: .*COMP-\(BROTLI\|ZSTD\)'; then
- echo "Not built with brotli and zstd, skipping" 1>&2
- exit 77
-fi
-
cat <<_EOF_ > ${CONF}
[overrides]
-cert-compression-alg = brotli
-cert-compression-alg = zstd
_EOF_
+CLICOMPLIST=`"$CLI" --list | grep '^Compression:'`
+
+if echo $CLICOMPLIST | grep COMP-BROTLI ; then
+ echo 'cert-compression-alg = brotli' >> ${CONF}
+ ANYCOMP=y
+fi
+if echo $CLICOMPLIST | grep COMP-ZSTD ; then
+ echo 'cert-compression-alg = zstd' >> ${CONF}
+elif [ "x$ANYCOMP" != "xy" ] ; then
+ echo "Not built with brotli or zstd, skipping" 1>&2
+ exit 77
+fi
${TEST}
if [ $? != 0 ]; then
```
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1721#note_2617513304
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20250710/677de585/attachment.html>
More information about the Gnutls-devel
mailing list