summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2008-11-28 22:21:09 +0000
committerDirk Engling <erdgeist@erdgeist.org>2008-11-28 22:21:09 +0000
commitc0dab929ab7794a957d9e799458326d4fc61fd1d (patch)
treea6e44949e0c0afc6bd3082d92bcc5fd54a7ac5e0 /tests
parent90217a63e54e3c44aa4cc598e33635dc6509a0f0 (diff)
downloadopentracker-c0dab929ab7794a957d9e799458326d4fc61fd1d.tar.gz
opentracker-c0dab929ab7794a957d9e799458326d4fc61fd1d.zip
The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version.
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.sh12
-rw-r--r--tests/testsuite2.sh2
2 files changed, 5 insertions, 9 deletions
diff --git a/tests/testsuite.sh b/tests/testsuite.sh
index b07546d..dace2c6 100644
--- a/tests/testsuite.sh
+++ b/tests/testsuite.sh
@@ -1,15 +1,11 @@
#!/bin/sh
while true; do
- request_string="GET /announce?info_hash=\
-%$(printf %02X $(( $RANDOM & 0xff )) )\
-%$(printf %02X $(( $RANDOM & 0xff )) )\
-2345678901234567\
-%$(printf %02X $(( $RANDOM & 0xff )) )\
-%$(printf %02X $(( $RANDOM & 0xff )) )\
-&ip=$(( $RANDOM & 0xff )).17.13.15&port=$(( $RANDOM & 0xff )) HTTP/1.0\n"
+ request_string="GET /announce?info_hash=0123456789012345678\
+%$(printf %02X $(( $RANDOM & 0xf )) )\
+&ip=$(( $RANDOM & 0xf )).$(( $RANDOM & 0xf )).13.16&port=$(( $RANDOM & 0xff )) HTTP/1.0\n"
-# echo $request_string
+echo $request_string
# echo
echo $request_string | nc 127.0.0.1 6969 >/dev/null
# echo
diff --git a/tests/testsuite2.sh b/tests/testsuite2.sh
index 5189187..c9a5a6a 100644
--- a/tests/testsuite2.sh
+++ b/tests/testsuite2.sh
@@ -8,7 +8,7 @@ while true; do
echo $request_string
echo
- echo $request_string | nc 10.0.1.3 6969 >/dev/null
+ echo $request_string | nc 23.23.23.237 6969 >/dev/null
echo
done