diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/integration/test_stats.py | 6 | ||||
| -rw-r--r-- | tests/runner.c | 4 | ||||
| -rw-r--r-- | tests/stubs.c | 4 | ||||
| -rw-r--r-- | tests/t_accesslist.c | 4 | ||||
| -rw-r--r-- | tests/t_batch.c | 4 | ||||
| -rw-r--r-- | tests/t_buf.c | 4 | ||||
| -rw-r--r-- | tests/t_event.c | 4 | ||||
| -rw-r--r-- | tests/t_fdstate.c | 4 | ||||
| -rw-r--r-- | tests/t_fmt.c | 4 | ||||
| -rw-r--r-- | tests/t_hex.c | 4 | ||||
| -rw-r--r-- | tests/t_iovec.c | 4 | ||||
| -rw-r--r-- | tests/t_ip.c | 4 | ||||
| -rw-r--r-- | tests/t_mutex.c | 4 | ||||
| -rw-r--r-- | tests/t_random.c | 4 | ||||
| -rw-r--r-- | tests/t_scan.c | 4 | ||||
| -rw-r--r-- | tests/t_socket.c | 4 | ||||
| -rw-r--r-- | tests/t_trackerlogic.c | 4 | ||||
| -rw-r--r-- | tests/t_urlencoded.c | 4 | ||||
| -rw-r--r-- | tests/t_vector.c | 4 | ||||
| -rw-r--r-- | tests/t_workqueue.c | 4 | ||||
| -rw-r--r-- | tests/test.c | 4 | ||||
| -rw-r--r-- | tests/test.h | 4 |
22 files changed, 27 insertions, 63 deletions
diff --git a/tests/integration/test_stats.py b/tests/integration/test_stats.py index 74f6d47..088d8a1 100644 --- a/tests/integration/test_stats.py +++ b/tests/integration/test_stats.py | |||
| @@ -66,6 +66,12 @@ class StatsShape(TrackerTestCase): | |||
| 66 | def test_everything_does_not_name_the_build(self): | 66 | def test_everything_does_not_name_the_build(self): |
| 67 | self.assertNotIn(b"opentracker 1", self.tracker.stats("everything")) | 67 | self.assertNotIn(b"opentracker 1", self.tracker.stats("everything")) |
| 68 | 68 | ||
| 69 | def test_everything_does_not_name_the_tracker_id(self): | ||
| 70 | """The id a tracker recognises its own live sync packets by. Knowing | ||
| 71 | it is of no use to a client and of some use to whoever would like a | ||
| 72 | tracker to discard what it is told.""" | ||
| 73 | self.assertNotIn(b"tracker_id", self.tracker.stats("everything")) | ||
| 74 | |||
| 69 | 75 | ||
| 70 | class StatsCount(TrackerTestCase): | 76 | class StatsCount(TrackerTestCase): |
| 71 | def test_the_torrent_count_follows_the_torrents(self): | 77 | def test_the_torrent_count_follows_the_torrents(self): |
diff --git a/tests/runner.c b/tests/runner.c index 97c6d51..ae2565b 100644 --- a/tests/runner.c +++ b/tests/runner.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <stdio.h> | 5 | #include <stdio.h> |
diff --git a/tests/stubs.c b/tests/stubs.c index 5999e2d..f7ac679 100644 --- a/tests/stubs.c +++ b/tests/stubs.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* Stubs for symbols the modules under test reference but never reach along | 4 | /* Stubs for symbols the modules under test reference but never reach along |
| 7 | the paths the tests exercise. If a test ever does reach one, the missing | 5 | the paths the tests exercise. If a test ever does reach one, the missing |
diff --git a/tests/t_accesslist.c b/tests/t_accesslist.c index 9925acd..14321f4 100644 --- a/tests/t_accesslist.c +++ b/tests/t_accesslist.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <stdlib.h> | 5 | #include <stdlib.h> |
diff --git a/tests/t_batch.c b/tests/t_batch.c index 02743f1..5a7ac1e 100644 --- a/tests/t_batch.c +++ b/tests/t_batch.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <fcntl.h> | 5 | #include <fcntl.h> |
diff --git a/tests/t_buf.c b/tests/t_buf.c index dcfb0bb..39c44f1 100644 --- a/tests/t_buf.c +++ b/tests/t_buf.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <stdint.h> | 5 | #include <stdint.h> |
diff --git a/tests/t_event.c b/tests/t_event.c index 1908dc9..5c45089 100644 --- a/tests/t_event.c +++ b/tests/t_event.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <fcntl.h> | 5 | #include <fcntl.h> |
diff --git a/tests/t_fdstate.c b/tests/t_fdstate.c index 421f076..c806dbe 100644 --- a/tests/t_fdstate.c +++ b/tests/t_fdstate.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <pthread.h> | 5 | #include <pthread.h> |
diff --git a/tests/t_fmt.c b/tests/t_fmt.c index bc23ed5..f94102d 100644 --- a/tests/t_fmt.c +++ b/tests/t_fmt.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <string.h> | 5 | #include <string.h> |
diff --git a/tests/t_hex.c b/tests/t_hex.c index a761737..84aeba2 100644 --- a/tests/t_hex.c +++ b/tests/t_hex.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <stdint.h> | 5 | #include <stdint.h> |
diff --git a/tests/t_iovec.c b/tests/t_iovec.c index 2553141..1e8206d 100644 --- a/tests/t_iovec.c +++ b/tests/t_iovec.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <stdlib.h> | 5 | #include <stdlib.h> |
diff --git a/tests/t_ip.c b/tests/t_ip.c index 8d71679..218d3ff 100644 --- a/tests/t_ip.c +++ b/tests/t_ip.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <stdint.h> | 5 | #include <stdint.h> |
diff --git a/tests/t_mutex.c b/tests/t_mutex.c index 7c1463b..e54e2fa 100644 --- a/tests/t_mutex.c +++ b/tests/t_mutex.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <pthread.h> | 5 | #include <pthread.h> |
diff --git a/tests/t_random.c b/tests/t_random.c index 67dedf6..b070c3f 100644 --- a/tests/t_random.c +++ b/tests/t_random.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <stdint.h> | 5 | #include <stdint.h> |
diff --git a/tests/t_scan.c b/tests/t_scan.c index aab4413..05c4a67 100644 --- a/tests/t_scan.c +++ b/tests/t_scan.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <stdint.h> | 5 | #include <stdint.h> |
diff --git a/tests/t_socket.c b/tests/t_socket.c index 20a0c0a..8e917a3 100644 --- a/tests/t_socket.c +++ b/tests/t_socket.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <errno.h> | 5 | #include <errno.h> |
diff --git a/tests/t_trackerlogic.c b/tests/t_trackerlogic.c index d3d8755..f64977f 100644 --- a/tests/t_trackerlogic.c +++ b/tests/t_trackerlogic.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <arpa/inet.h> | 5 | #include <arpa/inet.h> |
diff --git a/tests/t_urlencoded.c b/tests/t_urlencoded.c index 6e0ee31..3b3e6c2 100644 --- a/tests/t_urlencoded.c +++ b/tests/t_urlencoded.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <string.h> | 5 | #include <string.h> |
diff --git a/tests/t_vector.c b/tests/t_vector.c index 6e048e1..f0a9bf7 100644 --- a/tests/t_vector.c +++ b/tests/t_vector.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <stdint.h> | 5 | #include <stdint.h> |
diff --git a/tests/t_workqueue.c b/tests/t_workqueue.c index 13e0b2e..c454e5b 100644 --- a/tests/t_workqueue.c +++ b/tests/t_workqueue.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <stdlib.h> | 5 | #include <stdlib.h> |
diff --git a/tests/test.c b/tests/test.c index 4686369..33f77bd 100644 --- a/tests/test.c +++ b/tests/test.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* System */ | 4 | /* System */ |
| 7 | #include <stdarg.h> | 5 | #include <stdarg.h> |
diff --git a/tests/test.h b/tests/test.h index d7296cc..82ec178 100644 --- a/tests/test.h +++ b/tests/test.h | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | #ifndef OT_TEST_H__ | 4 | #ifndef OT_TEST_H__ |
| 7 | #define OT_TEST_H__ | 5 | #define OT_TEST_H__ |
