address linter warnings. Thanks to gagath@debian.org
[opentracker.git] / tests / testsuite.sh
blobdace2c6424f7992de3fb0b4d24458d623cca7490
1 #!/bin/sh
3 while true; do
4 request_string="GET /announce?info_hash=0123456789012345678\
5 %$(printf %02X $(( $RANDOM & 0xf )) )\
6 &ip=$(( $RANDOM & 0xf )).$(( $RANDOM & 0xf )).13.16&port=$(( $RANDOM & 0xff )) HTTP/1.0\n"
8 echo $request_string
9 # echo
10 echo $request_string | nc 127.0.0.1 6969 >/dev/null
11 # echo
13 done