1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
ULib/tests/ulib/http.test
2015-06-12 18:50:32 +02:00

29 lines
553 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
NC_CMD1="$NC -l -w 6 $NC_ARG_LISTEN_PORT 9080"
#NC_CMD2="$NC -l -w 6 $NC_ARG_LISTEN_PORT 9081"
$NC_CMD1 < inp/http/response.chunked > out/request.http &
$SLEEP
start_prg http http://localhost:9080
#$NC_CMD2 < inp/http/response.auth >> out/request.http &
#$SLEEP
#start_prg http http://localhost:9081
# Test against expected output
test_output_diff http