mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Implement --no-server-id
Suggested by: T.Ramirez
This commit is contained in:
11
devel/cover
11
devel/cover
@ -23,7 +23,7 @@ rm -f darkhttpd.gcda darkhttpd.log
|
||||
./a.out >/dev/null
|
||||
|
||||
# run tests against a basic instance (generates darkhttpd.gcda)
|
||||
./a.out $DIR --port $PORT --log darkhttpd.log &
|
||||
./a.out $DIR --port $PORT --log darkhttpd.log >/dev/null &
|
||||
PID=$!
|
||||
kill -0 $PID || exit 1
|
||||
python test.py
|
||||
@ -32,12 +32,19 @@ kill $PID
|
||||
# run forward tests
|
||||
./a.out $DIR --port $PORT \
|
||||
--forward example.com http://www.example.com \
|
||||
--forward secure.example.com https://www.example.com/secure &
|
||||
--forward secure.example.com https://www.example.com/secure >/dev/null &
|
||||
PID=$!
|
||||
kill -0 $PID || exit 1
|
||||
python test_forward.py
|
||||
kill $PID
|
||||
|
||||
# run no-server-id tests
|
||||
./a.out $DIR --port $PORT --no-server-id >/dev/null &
|
||||
PID=$!
|
||||
kill -0 $PID || exit 1
|
||||
python test_server_id.py
|
||||
kill $PID
|
||||
|
||||
echo generating darkhttpd.c.gcov report
|
||||
gcov darkhttpd
|
||||
rm -rf $DIR
|
||||
|
Reference in New Issue
Block a user