+ host=0.0.0.0
+ port=6217
+ MSG='
NetCat
'
+ echo -en 'Basic sanity test\t'
Basic sanity test + test_main '
NetCat
' '200 OK'
++ grep -w '200 OK'
++ nc -n -i1 0.0.0.0 6217
++ echo -n '
NetCat
'
+ output='HTTP/1.1 200 OK
'
+ '[' -z 'HTTP/1.1 200 OK
' ']'
+ echo OK
OK
+ echo -en 'Basic failure test\t'
Basic failure test + test_main '' '500 Internal'
++ nc -n -i1 0.0.0.0 6217
++ grep -w '500 Internal'
++ echo -n ''
+ output='HTTP/1.1 500 Internal Server Error
'
+ '[' -z 'HTTP/1.1 500 Internal Server Error
' ']'
+ echo OK
OK