File: tls-missing-param-receiver.sh

package info (click to toggle)
librelp 1.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,516 kB
  • sloc: ansic: 8,223; sh: 5,083; makefile: 146; python: 25
file content (16 lines) | stat: -rwxr-xr-x 430 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# This is a self test for the testbench! It does NOT test Relp.
echo 'Start Receiver...'
. ${srcdir:=$(pwd)}/test-framework.sh

function actual_test() {
	# NOT USING startup_receiver!
	./receive -l $TEST_TLS_LIB -p $TESTPORT -T -a "name" \
		-y ${srcdir}/tls-certs/cert.pem -P "rsyslog" \
		2> $OUTFILE

	check_output "receive:.*parameter missing; certificates and permittedPeer required"
}

do_tls_subtests
terminate