From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/rsyslog/files/, app-admin/rsyslog/
Date: Wed, 29 Apr 2020 15:21:32 +0000 (UTC) [thread overview]
Message-ID: <1588173674.17f054092e2c596c5d631345dff4cf1c1c51a374.whissi@gentoo> (raw)
commit: 17f054092e2c596c5d631345dff4cf1c1c51a374
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 29 12:25:31 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Apr 29 15:21:14 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17f05409
app-admin/rsyslog: fix tests
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
...004.0-skip-librelp-openssl-specific-tests.patch | 106 +++++++++++++++++++++
app-admin/rsyslog/rsyslog-8.2004.0.ebuild | 2 +
2 files changed, 108 insertions(+)
diff --git a/app-admin/rsyslog/files/rsyslog-8.2004.0-skip-librelp-openssl-specific-tests.patch b/app-admin/rsyslog/files/rsyslog-8.2004.0-skip-librelp-openssl-specific-tests.patch
new file mode 100644
index 00000000000..bc047a41a1e
--- /dev/null
+++ b/app-admin/rsyslog/files/rsyslog-8.2004.0-skip-librelp-openssl-specific-tests.patch
@@ -0,0 +1,106 @@
+From 15f5a1bda22bc4586e7ad8d24222befd1933a822 Mon Sep 17 00:00:00 2001
+From: Andre lorbach <alorbach@adiscon.com>
+Date: Wed, 29 Apr 2020 09:24:10 +0200
+Subject: [PATCH] SKIP librelp tlscmd tests if librelp was build without
+ openssl support
+
+closes https://github.com/rsyslog/rsyslog/issues/4131
+---
+ tests/imrelp-tls-cfgcmd.sh | 23 ++++++++++++-----------
+ tests/sndrcv_relp_tls-cfgcmd.sh | 25 +++++++++++++------------
+ 2 files changed, 25 insertions(+), 23 deletions(-)
+
+diff --git a/tests/imrelp-tls-cfgcmd.sh b/tests/imrelp-tls-cfgcmd.sh
+index bbd63c9cd3..bb1af4ec91 100755
+--- a/tests/imrelp-tls-cfgcmd.sh
++++ b/tests/imrelp-tls-cfgcmd.sh
+@@ -1,6 +1,7 @@
+ #!/bin/bash
+ # addd 2019-11-14 by alorbach, released under ASL 2.0
+ . ${srcdir:=.}/diag.sh init
++require_relpEngineSetTLSLibByName
+ export NUMMESSAGES=1000
+ export RSYSLOG_DEBUG="debug nologfuncflow noprintmutexaction nostdout"
+ export RSYSLOG_DEBUGLOG="$RSYSLOG_DYNNAME.receiver.debuglog"
+@@ -27,21 +28,21 @@ tcpflood --check-only -k "Protocol=-ALL,TLSv1.2" -u "openssl" -Trelp-tls -acertv
+ shutdown_when_empty
+ wait_shutdown
+
+-content_check --check-only "parameter tls.tlslib ignored" ${RSYSLOG_DEBUGLOG}
++content_check --check-only "relpTcpTLSSetPrio_gtls" ${RSYSLOG_DEBUGLOG}
+ ret=$?
+ if [ $ret == 0 ]; then
+- echo "SKIP: Parameter tls.tlslib not supported"
++ echo "SKIP: LIBRELP was build without OPENSSL Support"
++ skip_test
++fi
++
++content_check --check-only "OpenSSL Version too old" ${RSYSLOG_DEBUGLOG}
++ret=$?
++if [ $ret == 0 ]; then
++ echo "SKIP: OpenSSL Version too old"
+ skip_test
+ else
+- content_check --check-only "OpenSSL Version too old" ${RSYSLOG_DEBUGLOG}
+- ret=$?
+- if [ $ret == 0 ]; then
+- echo "SKIP: OpenSSL Version too old"
+- skip_test
+- else
+- # Kindly check for a failed session
+- content_check "relp connect failed with return 10031" ${RSYSLOG_DYNNAME}.tcpflood
+- fi
++ # Kindly check for a failed session
++ content_check "relp connect failed with return 10031" ${RSYSLOG_DYNNAME}.tcpflood
+ fi
+
+ exit_test
+\ No newline at end of file
+diff --git a/tests/sndrcv_relp_tls-cfgcmd.sh b/tests/sndrcv_relp_tls-cfgcmd.sh
+index ff7b3bb75c..57e0f720f0 100755
+--- a/tests/sndrcv_relp_tls-cfgcmd.sh
++++ b/tests/sndrcv_relp_tls-cfgcmd.sh
+@@ -1,6 +1,7 @@
+ #!/bin/bash
+ # added 2019-11-13 by alorbach
+ . ${srcdir:=.}/diag.sh init
++require_relpEngineSetTLSLibByName
+ export PORT_RCVR="$(get_free_port)"
+ export RSYSLOG_DEBUG="debug nologfuncflow noprintmutexaction nostdout"
+ export RSYSLOG_DEBUGLOG="$RSYSLOG_DYNNAME.receiver.debuglog"
+@@ -40,22 +41,22 @@ wait_shutdown 2
+ shutdown_when_empty
+ wait_shutdown
+
+-content_check --check-only "parameter tls.tlslib ignored" ${RSYSLOG_DEBUGLOG}
++content_check --check-only "relpTcpConnectTLSInit_gnutls" ${RSYSLOG_DEBUGLOG}
+ ret=$?
+ if [ $ret == 0 ]; then
+- echo "SKIP: Parameter tls.tlslib not supported"
++ echo "SKIP: LIBRELP was build without OPENSSL Support"
++ skip_test
++fi
++
++content_check --check-only "OpenSSL Version too old" $RSYSLOG_DEBUGLOG
++ret=$?
++if [ $ret == 0 ]; then
++ echo "SKIP: OpenSSL Version too old"
+ skip_test
+ else
+- content_check --check-only "OpenSSL Version too old" $RSYSLOG_DEBUGLOG
+- ret=$?
+- if [ $ret == 0 ]; then
+- echo "SKIP: OpenSSL Version too old"
+- skip_test
+- else
+- # Kindly check for a failed session
+- content_check "librelp error 10031" $RSYSLOG_DEBUGLOG
+- # content_check "OpenSSL Error Stack:"
+- fi
++ # Kindly check for a failed session
++ content_check "librelp error 10031" $RSYSLOG_DEBUGLOG
++# content_check "OpenSSL Error Stack:"
+ fi
+
+ exit_test
+\ No newline at end of file
diff --git a/app-admin/rsyslog/rsyslog-8.2004.0.ebuild b/app-admin/rsyslog/rsyslog-8.2004.0.ebuild
index e3157ed0808..8f08c7337b5 100644
--- a/app-admin/rsyslog/rsyslog-8.2004.0.ebuild
+++ b/app-admin/rsyslog/rsyslog-8.2004.0.ebuild
@@ -98,6 +98,8 @@ if [[ ${PV} == "9999" ]]; then
DEPEND+=" >=dev-python/docutils-0.12"
fi
+PATCHES=( "${FILESDIR}"/${P}-skip-librelp-openssl-specific-tests.patch )
+
CONFIG_CHECK="~INOTIFY_USER"
WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER isn't set. Imfile module on this system will only support polling mode!"
next reply other threads:[~2020-04-29 15:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-29 15:21 Thomas Deutschmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-08 19:34 [gentoo-commits] repo/gentoo:master commit in: app-admin/rsyslog/files/, app-admin/rsyslog/ Maciej Barć
2022-10-19 20:12 Maciej Barć
2021-02-04 19:39 Thomas Deutschmann
2020-11-26 13:26 Thomas Deutschmann
2019-08-10 20:29 Thomas Deutschmann
2019-04-05 20:21 Thomas Deutschmann
2018-12-13 13:19 Thomas Deutschmann
2018-12-11 16:42 Thomas Deutschmann
2018-11-03 22:42 Thomas Deutschmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1588173674.17f054092e2c596c5d631345dff4cf1c1c51a374.whissi@gentoo \
--to=whissi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox