diff options
author | erdgeist <> | 2007-12-11 23:34:36 +0000 |
---|---|---|
committer | erdgeist <> | 2007-12-11 23:34:36 +0000 |
commit | c2cbe1dc273984c689c97f5eca8798195d5a35a0 (patch) | |
tree | 438e44f1647ed286b17685cfde6f122802ae3351 | |
parent | 19cc9ba882afa61df2aefbe8be062dc666142538 (diff) |
A simple script that fills up opentracker with some peers, if -DWANT_IP_FROM_QUERY_STRING is specifierd
-rw-r--r-- | tests/testsuite.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/testsuite.sh b/tests/testsuite.sh new file mode 100644 index 0000000..b07546d --- /dev/null +++ b/tests/testsuite.sh | |||
@@ -0,0 +1,17 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | while true; do | ||
4 | request_string="GET /announce?info_hash=\ | ||
5 | %$(printf %02X $(( $RANDOM & 0xff )) )\ | ||
6 | %$(printf %02X $(( $RANDOM & 0xff )) )\ | ||
7 | 2345678901234567\ | ||
8 | %$(printf %02X $(( $RANDOM & 0xff )) )\ | ||
9 | %$(printf %02X $(( $RANDOM & 0xff )) )\ | ||
10 | &ip=$(( $RANDOM & 0xff )).17.13.15&port=$(( $RANDOM & 0xff )) HTTP/1.0\n" | ||
11 | |||
12 | # echo $request_string | ||
13 | # echo | ||
14 | echo $request_string | nc 127.0.0.1 6969 >/dev/null | ||
15 | # echo | ||
16 | |||
17 | done | ||