Commit Graph

233 Commits

Author SHA1 Message Date
Arvid Norberg 5dc00969f8 fix more warninigs 2015-05-06 02:13:03 +00:00
Arvid Norberg f7e4f83469 separate out session_stats into its own header. silences warning and cleans up 2015-04-25 02:12:02 +00:00
Arvid Norberg 3ea67e2bf5 move time_now_string out to the unit test library (basically unused in libtorrent itself) 2015-04-24 03:48:08 +00:00
Arvid Norberg 013ed36f09 landed alert_queue feature branch into trunk 2015-04-03 20:15:48 +00:00
Arvid Norberg 0aece517ce fix some undefined behavior in tests. and fix test_file_storage 2015-03-22 05:31:55 +00:00
Arvid Norberg 74ca290fe6 attempt to fix build 2015-03-15 06:05:41 +00:00
Arvid Norberg 881fa4dce6 remove sleep() from the libtorrent API 2015-03-13 05:52:48 +00:00
Arvid Norberg 6c1df7eb55 landed the bdecode branch in master. lazy_bdecode/lazy_entry is now being replaced by bdecode/bdecode_node 2015-03-12 05:20:12 +00:00
Arvid Norberg c1dc982f4f deprecate the ptime type and related time types. just use boost::chrono / std::chrono 2015-03-12 04:34:54 +00:00
Arvid Norberg b897a6ce29 fix bug in settings_pack causing intermittent unit test failures. added unit test to cover the bug 2015-01-03 16:52:22 +00:00
Arvid Norberg 764b09d6b5 make the peer fingerprint a regular setting and remove it from the main session constructor argument list 2014-12-31 15:51:45 +00:00
Arvid Norberg 1ed1963f29 remove size_type typedef in favor of boost::int64_t 2014-12-03 04:32:50 +00:00
Arvid Norberg 14c9bd90d3 fix bug in setup_transfer (for unit tests). fix verbose logging build. make sure test_pex is reliable 2014-10-21 02:08:46 +00:00
Arvid Norberg a655047cb0 support SSL over uTP (unit test is still failing with same errors as previously, this has not been fixed yet) 2014-10-06 03:03:01 +00:00
Arvid Norberg bed6d5c233 fix test builds without deprecated functions 2014-09-03 03:17:47 +00:00
Arvid Norberg c60ceacb71 switch over to use boost.atomic instead of home-built one 2014-08-01 07:32:54 +00:00
Arvid Norberg 7351389ce8 land libtorrent_aio branch in trunk 2014-07-06 19:18:00 +00:00
Arvid Norberg 2b7bef0f7b fix support for web servers not supporting keepalive 2014-06-15 18:02:59 +00:00
Arvid Norberg e225259481 fix some msvc warnings 2014-05-10 03:23:05 +00:00
Arvid Norberg f3535b1e69 another msvc-7.1 fix 2014-03-25 04:13:58 +00:00
Arvid Norberg e332167ddd improve storage unit tests 2014-03-07 08:39:55 +00:00
Arvid Norberg 9f4e865596 merge remap_files unit test from RC_0_16 2014-03-05 09:37:49 +00:00
Arvid Norberg 0a042dde8b clean up udp-tracker unit tests 2014-02-23 01:32:55 +00:00
Arvid Norberg 6c22d426d4 make all unit tests pass msvc's /RTCc instrumentation (no implicit integer truncation in casts) 2014-02-05 09:38:32 +00:00
Arvid Norberg 36c9add067 don't print stuff to stdout in debug builds. when waking up from completing a connection attempt, exit immediately if the connection is disconnecting, or disconnect if we're in graceful pause mode. some test cleanups 2014-01-26 08:18:13 +00:00
Arvid Norberg 99d9916c29 some more piece_picker asserts 2014-01-22 09:53:47 +00:00
Arvid Norberg dca3f3c1a8 improve SSL error reporting and fix torrent_info::ssl_cert() bug 2014-01-20 01:01:03 +00:00
Arvid Norberg ad772aecd8 test tweaks 2013-12-16 05:50:03 +00:00
Arvid Norberg d64d12e50d merge test_read_piece from RC_0_16 2013-11-24 01:32:51 +00:00
Arvid Norberg b4aad2a481 move web_server for unit tests over to python 2013-11-03 08:15:51 +00:00
Arvid Norberg 4e78921c76 more debug output for test web server 2013-10-28 07:56:10 +00:00
Arvid Norberg 9ec2f48a6e split out test_priority from test_transfer 2013-10-10 17:00:32 +00:00
Arvid Norberg 28041accc1 unit test cleanup (test_metadata_transfer) 2013-10-10 07:50:34 +00:00
Arvid Norberg d45d193811 improve error message for tracker_error_alert. various smaller attempts at making the unit tests more reliable 2013-10-07 06:20:55 +00:00
Arvid Norberg 793c65cc61 attempt to fix test http proxy to handle EAGAIN errors 2013-10-07 00:34:06 +00:00
Arvid Norberg d90f7336b1 fix unit test web server for tracker announces 2013-10-07 00:33:55 +00:00
Arvid Norberg 0e7fb25916 disable debug output in test web server 2013-10-01 22:18:13 +00:00
Arvid Norberg 6dcac0a33f minor unit test fixes 2013-10-01 16:47:05 +00:00
Arvid Norberg d327916c27 fix bug in port randomization in unit tests 2013-10-01 04:30:15 +00:00
Arvid Norberg 53a95fbcc1 fix web seeding tests 2013-10-01 04:10:03 +00:00
Arvid Norberg f8261494e0 just kill python instead of trying to shut it down gracefully, in tests 2013-09-30 17:17:11 +00:00
Arvid Norberg a577dac775 split up test_web_seed into smaller tests 2013-09-29 22:50:06 +00:00
Arvid Norberg a623c4c41c back-port test port fix 2013-09-29 19:18:25 +00:00
Arvid Norberg 4991a601c6 support proxy authentication in http.py and tests 2013-09-23 06:25:27 +00:00
Arvid Norberg 60f0af860f fix mingw build of tests 2013-09-23 05:36:50 +00:00
Arvid Norberg 04825115b4 attempt to fix windows usage of new python based proxies 2013-09-22 13:34:32 +00:00
Arvid Norberg 9c99220dd1 make tests not rely on delegated anymore, but instead use simple python implementations for socks and http proxy 2013-09-22 03:37:33 +00:00
Arvid Norberg 1fb0511c51 minor typo in test launching of delegated 2013-09-20 12:18:53 +00:00
Arvid Norberg 8311c170f0 launch delegated.exe without waiting on it returning (windows) 2013-09-20 03:06:26 +00:00
Arvid Norberg dfaddedc6f another attempt to not make delegated stall 2013-09-18 09:05:27 +00:00
Arvid Norberg 413f7b00ba run delegated.exe as a background process in case it can't daemonize 2013-09-18 08:43:08 +00:00
Arvid Norberg 89b6c51725 make test_swarm test with a smaller torrent, making the test complete faster 2013-09-17 09:33:42 +00:00
Arvid Norberg 8ab8172cb7 improve DHT routing table to return better nodes (lower RTT and closer to target) 2013-09-09 04:16:52 +00:00
Arvid Norberg 4b0c4165d7 fix tests 2013-09-03 16:02:24 +00:00
Arvid Norberg 515cd24a8c if setting socket send or receive buffer size fails, reset it to the previous value 2013-09-03 08:39:30 +00:00
Arvid Norberg 1dc491e7e1 fix test_upnp 2013-09-03 04:41:49 +00:00
Arvid Norberg f2aca363ad another attempt to get tests to link on windows 2013-08-27 07:02:46 +00:00
Arvid Norberg 27adb1fc44 improve error reporting from unit tests 2013-08-19 04:33:16 +00:00
Arvid Norberg 1afc0c6740 a bunch of fixes to make test_web_seeds a lot faster, and fail slightly fewer tests 2013-08-19 03:54:45 +00:00
Arvid Norberg 023116db6f merge ssl test fix from RC_0_16 2013-08-17 22:29:34 +00:00
Arvid Norberg 2fec803ae4 merged ssl fix from RC_0_16 2013-08-12 03:31:44 +00:00
Arvid Norberg a854373a04 raise time limit for unit tests. improve logging of udp tracker test 2013-08-04 00:49:41 +00:00
Arvid Norberg 45607520e9 attempt to make unit tests more likely to clean up proxy processes after themselves 2013-08-03 23:30:37 +00:00
Arvid Norberg 990275d2dc merge test_ssl fix from RC_0_16 2013-08-02 01:12:27 +00:00
Arvid Norberg 0acd1200f3 fixed test_transfer 2013-08-01 03:50:57 +00:00
Arvid Norberg 87ae3fd01a more timestamps in test logs 2013-07-30 06:04:16 +00:00
Arvid Norberg 6cf5466f5f fix test_web_seed for use in trunk, where tests are run in separate directories 2013-07-29 09:27:46 +00:00
Arvid Norberg beae6cece0 merged ssl fix from RC_0_16 2013-07-28 15:06:28 +00:00
Arvid Norberg a6c662ec0a fix SSL build of unit tests 2013-07-22 00:53:13 +00:00
Arvid Norberg facbf9c178 don't expose load_file as a public function 2013-07-19 21:41:33 +00:00
Arvid Norberg aa58f26985 fix dynamic linking of test library on windows 2013-06-23 17:36:00 +00:00
Arvid Norberg 6b6c06fa0b test log improvements 2013-06-21 01:06:40 +00:00
Arvid Norberg 208321dab0 improve test logging 2013-06-20 05:28:42 +00:00
Arvid Norberg 3b9fd38c22 fix build of test_storage without deprecated functions 2013-06-18 07:33:49 +00:00
Arvid Norberg 1774e989f0 make tests run in separate directories, to have them never interfere with eachother 2013-06-17 00:45:17 +00:00
Arvid Norberg 7f23627581 some more output for the servers started by some tests 2013-06-16 23:05:11 +00:00
Arvid Norberg f91d83434b don't print color output from tests (to make it work with some of the regression testing tools) 2013-06-14 16:38:26 +00:00
Arvid Norberg 6bc908fd49 merged anonymous mode fix from RC_0_16 2013-06-12 07:57:13 +00:00
Arvid Norberg bdf0e1764b merged fixes from RC_0_16 2013-05-11 22:00:54 +00:00
Arvid Norberg 23ee02ccab fix race condition fix from RC_0_16 2013-03-10 10:45:22 +00:00
Arvid Norberg 3599b130c0 expand unit tests 2013-02-24 10:02:26 +00:00
Arvid Norberg 640f3e1f2d merge test_checking fix from RC_0_16 2013-01-07 00:55:15 +00:00
Arvid Norberg d8c2228ff3 merged some windows fixes from RC_0_16 2013-01-06 18:38:33 +00:00
Arvid Norberg 38d7e58177 merge checking fix from RC_0_16 2013-01-06 04:53:26 +00:00
Arvid Norberg 8f0d039b3c merged proxy test change from RC_0_16 2012-10-11 02:20:16 +00:00
Arvid Norberg 342a0b9306 merged UNC path fixes from libtorrent_aio 2012-06-16 23:23:36 +00:00
Arvid Norberg f6450b91bb randomize proxy port to improve chances of unit tests passing 2012-06-09 16:58:16 +00:00
Arvid Norberg 6acde24799 merged SSL fix from RC_0_16 2012-04-05 04:17:19 +00:00
Arvid Norberg 00aa80a5fd fix issue in web_peer_connection when the combined header size + chunk headers exceeds 1 kB 2012-03-23 04:35:35 +00:00
Arvid Norberg bc851d317f work on test_web_seed 2012-03-22 01:48:17 +00:00
Arvid Norberg 26805c944c converted use of deprecated functions in the tests 2012-03-19 04:02:13 +00:00
Arvid Norberg 5a23d04143 fix some clang warnings 2012-02-18 08:23:48 +00:00
Arvid Norberg 12d94246df improve test error messages 2011-11-25 22:50:43 +00:00
Arvid Norberg 0f6b34c260 fixed unit test 2011-10-30 03:51:55 +00:00
Arvid Norberg 4e1af65fe0 fix issue where event=stopped announces wouldn't be sent when closing session 2011-09-17 21:15:42 +00:00
Arvid Norberg 726f89ca99 (partially) fix test_web_seed 2011-09-10 05:36:38 +00:00
Arvid Norberg 92bcb9ebfd feature to encrypt peer connections with a secret AES-256 key stored in .torrent file 2011-09-05 05:50:41 +00:00
Arvid Norberg cb3371dd7f print even less in test_web_seed 2011-04-10 01:36:07 +00:00
Arvid Norberg 27c1bc632d introduced pop_alerts() which pops the entire alert queue in a single call 2011-03-14 02:59:46 +00:00
Arvid Norberg 48a009f1c5 fixed typo 2011-02-22 07:28:03 +00:00