mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
add test for the echo server
This commit is contained in:
parent
3f9ece857f
commit
754ba6c8fe
1 changed files with 9 additions and 0 deletions
9
test.sh
9
test.sh
|
@ -7,3 +7,12 @@ FILES="hermit/usr/tests/hello hermit/usr/tests/hellof hermit/usr/tests/hello++ h
|
|||
PROXY=hermit/tools/proxy
|
||||
|
||||
for f in $FILES; do echo "check $f..."; $PROXY $f || exit 1; done
|
||||
|
||||
# test echo server at port 8000
|
||||
$PROXY hermit/usr/tests/server &
|
||||
sleep 10
|
||||
curl http://127.0.0.1:8000/help
|
||||
sleep 1
|
||||
|
||||
# kill server
|
||||
kill $!
|
||||
|
|
Loading…
Add table
Reference in a new issue