1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
ULib/tests/ulib/http.test
stefanocasazza 4a59c809c3 fix
2017-03-03 16:12:00 +01:00

33 lines
609 B
Bash
Executable File

#!/bin/sh
. ../.function
## http.test -- Test client http feature
start_msg http
#UTRACE="0 5M 0"
#UOBJDUMP="0 100k 10"
#USIMERR="error.sim"
export UTRACE UOBJDUMP USIMERR
check_for_netcat
rm -f out/request.http
ncat_listen localhost 9080 inp/http/response.chunked out/request.http
$SLEEP
#netstat -tlp >>/tmp/netcat.err
#STRACE="$TRUSS"
start_prg http http://localhost:9080
kill_netcat
#ncat_listen localhost 9080 inp/http/response.auth out/request.http
#$SLEEP
#netstat -tlp >>/tmp/netcat.err
#start_prg http http://localhost:9081
#kill_netcat
# Test against expected output
test_output_diff http