summaryrefslogtreecommitdiffstats
path: root/tests/imtcp-tls-basic.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-03-11 15:47:41 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-03-11 15:47:41 +0100
commit5c7162879af11255aea4e6f6e1091a69ce14aff3 (patch)
tree3f1d3b2f1a7d21e0b5c7dcdca42eff05d790876a /tests/imtcp-tls-basic.sh
parent804cbee541f24f61be41d6405754bf082da288a0 (diff)
downloadrsyslog-5c7162879af11255aea4e6f6e1091a69ce14aff3.tar.gz
rsyslog-5c7162879af11255aea4e6f6e1091a69ce14aff3.tar.xz
rsyslog-5c7162879af11255aea4e6f6e1091a69ce14aff3.zip
testbench bugfix: tls test failed during make distcheck...
... due to wrong path the certificate files
Diffstat (limited to 'tests/imtcp-tls-basic.sh')
-rwxr-xr-xtests/imtcp-tls-basic.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/imtcp-tls-basic.sh b/tests/imtcp-tls-basic.sh
index d00f95d6..bfe24880 100755
--- a/tests/imtcp-tls-basic.sh
+++ b/tests/imtcp-tls-basic.sh
@@ -3,8 +3,11 @@
echo ===============================================================================
echo \[imtcp-tls-basic.sh\]: testing imtcp in TLS mode - basic test
source $srcdir/diag.sh init
+echo \$DefaultNetstreamDriverCAFile $srcdir/tls-certs/ca.pem >rsyslog.conf.tlscert
+echo \$DefaultNetstreamDriverCertFile $srcdir/tls-certs/cert.pem >>rsyslog.conf.tlscert
+echo \$DefaultNetstreamDriverKeyFile $srcdir/tls-certs/key.pem >>rsyslog.conf.tlscert
source $srcdir/diag.sh startup imtcp-tls-basic.conf
-source $srcdir/diag.sh tcpflood -p13514 -m50000 -Ttls -Z./tls-certs/cert.pem -z./tls-certs/key.pem
+source $srcdir/diag.sh tcpflood -p13514 -m50000 -Ttls -Z$srcdir/tls-certs/cert.pem -z$srcdir/tls-certs/key.pem
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
source $srcdir/diag.sh wait-shutdown
source $srcdir/diag.sh seq-check 0 49999