Add tests for --forward-https.

This commit is contained in:
Emil Mikulic
2021-08-22 13:18:36 +10:00
parent 4fd6a1067c
commit 1759a7a7d9
2 changed files with 43 additions and 0 deletions

View File

@ -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