mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Add tests for --forward-https.
This commit is contained in:
@ -119,6 +119,15 @@ runtests() {
|
||||
kill $PID
|
||||
wait $PID
|
||||
|
||||
echo "===> run --forward-https tests"
|
||||
./a.out $DIR --port $PORT --forward-https \
|
||||
>>test.out.stdout 2>>test.out.stderr &
|
||||
PID=$!
|
||||
kill -0 $PID || exit 1
|
||||
python3 test_forward_https.py
|
||||
kill $PID
|
||||
wait $PID
|
||||
|
||||
if [[ -s test.out.stderr ]]; then
|
||||
echo "FAIL: stderr should have been empty."
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user