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