stunnel4/tests/recipes/030_simple_execute

28 lines
583 B
Bash
Executable File

#!/bin/sh
. $(dirname $0)/../test_library
start() {
../../src/stunnel -fd 0 <<EOT
debug = debug
syslog = no
pid = ${result_path}/stunnel.pid
output = ${result_path}/stunnel.log
[https client]
client = yes
accept = 127.0.0.1:${http1}
connect = 127.0.0.1:${https}
[https server]
accept = 127.0.0.1:${https}
exec = ${script_path}/execute
execArgs = execute 030_simple_execute
cert = ${script_path}/certs/server_cert.pem
EOT
}
check_ports "030_simple_execute"
start 2> "error.log"
test_log_for "030_simple_execute" "execute" "$1" 2>> "stderr.log"
exit $?