mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
update tests, make them more robust
This commit is contained in:
parent
84adbb13b2
commit
0014334010
5 changed files with 10 additions and 8 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
serve directory . on http://127.0.0.1:8088
|
serve directory . on http://127.0.0.1:8088
|
||||||
0 0 52428800 data21
|
52428800 data21
|
||||||
0 0 52428800 data22
|
52428800 data22
|
||||||
0 0 52428800 data23
|
52428800 data23
|
||||||
0 0 157286400 total
|
157286400 total
|
||||||
|
|
|
||||||
|
|
@ -20,4 +20,4 @@ curl -N "http://localhost:${PORT}/foo_50" -o data23 \
|
||||||
-H 'Accept-encoding: chunked' --max-time 10
|
-H 'Accept-encoding: chunked' --max-time 10
|
||||||
|
|
||||||
kill $PID
|
kill $PID
|
||||||
wc data21 data22 data23
|
wc -m data21 data22 data23
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ test_out.txt
|
||||||
</html>
|
</html>
|
||||||
hello
|
hello
|
||||||
world
|
world
|
||||||
ykjNycnnKs8vyknhAgAAAP//
|
ykjNycnnKs8vyknhAgAAAP//AwA=
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
serve directory . on http://127.0.0.1:8087
|
serve directory . on http://127.0.0.1:8087
|
||||||
upload successful 0 0 52428800 data
|
upload successful
|
||||||
|
52428800 data
|
||||||
|
|
|
||||||
|
|
@ -14,4 +14,5 @@ cat foo_50 | curl -N -X PUT http://localhost:$PORT/data --data-binary @- \
|
||||||
-H 'Transfer-Encoding: chunked' --max-time 10
|
-H 'Transfer-Encoding: chunked' --max-time 10
|
||||||
|
|
||||||
kill $PID
|
kill $PID
|
||||||
wc data
|
echo ''
|
||||||
|
wc -m data
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue