summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2008-10-04 05:40:48 +0000
committerDirk Engling <erdgeist@erdgeist.org>2008-10-04 05:40:48 +0000
commite076dab883f1cf3b949b7d1d22934965b37655f1 (patch)
treedd1b15bb61354854178284ac2e40e54f07a64e97 /tests
parent76416b5c1c307718332b51b8682bd8a603071a02 (diff)
downloadopentracker-e076dab883f1cf3b949b7d1d22934965b37655f1.tar.gz
opentracker-e076dab883f1cf3b949b7d1d22934965b37655f1.zip
added live sync code
added a config file parser added tracker id changed WANT_CLOSED_TRACKER and WANT_BLACKLIST into WANT_ACCESS_WHITE and WANT_ACCESS_BLACK changed WANT_TRACKER_SYNC to WANT_SYNC_BATCH and added WANT_SYNC_LIVE added an option to switch off fullscrapes cleaned up many internal hardcoded values, like PROTO_FLAG,
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite2.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/testsuite2.sh b/tests/testsuite2.sh
new file mode 100644
index 0000000..5189187
--- /dev/null
+++ b/tests/testsuite2.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+while true; do
+ request_string="GET /announce?info_hash=012345678901234567\
+%$(printf %02X $(( $RANDOM & 0xff )) )\
+%$(printf %02X $(( $RANDOM & 0xff )) )\
+&ip=$(( $RANDOM & 0xff )).17.13.15&port=$(( $RANDOM & 0xff )) HTTP/1.0\n"
+
+ echo $request_string
+ echo
+ echo $request_string | nc 10.0.1.3 6969 >/dev/null
+ echo
+
+done