Commit Graph

146 Commits

Author SHA1 Message Date
Alden Torres e2d682275a Implementing and using new dht storage interface 2015-09-16 08:30:27 -04:00
arvidn b4381aa646 add unit test for linked_list 2015-08-30 23:34:49 -04:00
arvidn 666b6dc788 split out some more tests from test_primitives 2015-08-24 17:40:29 +02:00
arvidn 225b82d9a0 move test_trackers_extensions over to a simulation and some minor metadata extension and tracker re-announce fixes 2015-08-13 23:07:04 -04:00
arvidn 874bfcc89e transitioned test_super_seeding to a simulation (and remove the live test for test_swarm, which already has been transitioned to a simulation) 2015-08-10 10:18:36 -04:00
arvidn a75699eff1 move test_metadata_extension to a simulation instead of a live test 2015-08-10 09:17:41 -04:00
Dāvis 24b7fd48a6 Remove extra `\` in test/Makefile.am 2015-08-08 16:51:29 +03:00
arvidn 46803b75f8 support building libtorrent in simulation mode (using libsimulator, which is a git submodule) 2015-08-07 21:31:59 -04:00
Jakob Petsovits 991f0c2a45 Rename test_bdecode_performance to bdecode_benchmark, fix CMake issues.
It's not a test as such, since it's got its own main() that takes
arguments, doesn't return a result that can be directly compared
against expected results, and doesn't make use of the test_common
infrastructure.

The CMake build attempts to build all files named test_*.cpp with
test_common, whose main() and load_file() symbols clash with those
that the benchmark provides. Instead of making an exception, let's
rename it to something that doesn't start with "test_". Its usage
message even claims it's called bdecode_benchmark, so we use that.

Also, complete the file listing for test_common in CMake and use
an OBJECT pseudo-library there instead of STATIC. It's just as good
and jives better with having symbols provided by the executable.
(Follow-up patch in the works to provide Asio symbols that way.)

test_natpmp is a proper test but doesn't currently build,
so exclude it from the build for now.
2015-07-17 20:59:39 -04:00
Chocobo1 70fa9098a8 Fix error when building test_file_progress, missed in e2784df 2015-07-09 20:11:23 +08:00
arvidn e2784df13c factor out file progress tracking from the torrent class 2015-06-28 22:47:11 -04:00
Arvid Norberg f9c9d0ad0d merge small unit tests to make running the tests quicker. expand the test framework a bit. add ax_boost_random.m4 script to link against boost.random correctly from makefile. 2015-05-30 04:31:23 +00:00
Arvid Norberg 647a6dba54 moved some tests to the correct place and factor out some tests from test_primitives.cpp in order to be able to track test coverage better 2015-05-27 21:27:41 +00:00
Arvid Norberg 9856a1fe0c break out more tests from test_primitives 2015-05-23 01:38:47 +00:00
Arvid Norberg 202b4921b6 merged changes from RC_1_0 2015-05-08 04:28:24 +00:00
Arvid Norberg f0336017d1 fix gcc warnings and missing header files in makefiles 2015-04-26 00:51:44 +00:00
Arvid Norberg 3bf9fa8fca move out merkle functions into their own file and test 2015-04-24 06:06:41 +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 837e709628 deprecate RSS API 2015-03-28 17:31:27 +00:00
Arvid Norberg ccc7e45406 landed mutable torrents branch in trunk 2015-03-21 00:12:40 +00:00
Arvid Norberg d370ae0b9d merge test_torrent_parse and test_torrent_info (they both exercised torrent_info) 2015-02-15 01:04:50 +00:00
Arvid Norberg 20b4608c38 optimize copying torrent_info and file_storage objects 2014-12-17 05:33:16 +00:00
Arvid Norberg bfb0c4fe80 merged changes from RC_1_0 2014-11-12 16:57:59 +00:00
Arvid Norberg f7221e277f add unit test for crc32c and fix cpuid warning 2014-11-10 02:05:46 +00:00
Arvid Norberg aae56c991c merged changes from RC_1_0 2014-11-08 16:58:18 +00:00
Arvid Norberg 939411488e split time_critical and super_seeding tests out of test_swarm 2014-10-12 08:39:14 +00:00
Arvid Norberg ceccc2a483 land branch to remove half-open connection limit / connection queue 2014-10-03 20:56:57 +00:00
Arvid Norberg eb32b1fef1 merged changes from RC_1_0 2014-09-12 22:38:07 +00:00
Arvid Norberg 24b9101075 merged changes from RC_1_0 2014-07-12 06:20:16 +00:00
Arvid Norberg 7351389ce8 land libtorrent_aio branch in trunk 2014-07-06 19:18:00 +00:00
Arvid Norberg 53401b92cd fix makefile issue 2014-07-02 09:20:57 +00:00
Arvid Norberg b0f91b8ed5 fix openssl usage in unit tests makefile 2014-07-02 08:41:52 +00:00
Arvid Norberg 46e9d1048a minor tweak to makefile build system (blindly) 2014-06-19 03:32:53 +00:00
Arvid Norberg 2b7bef0f7b fix support for web servers not supporting keepalive 2014-06-15 18:02:59 +00:00
Arvid Norberg 330d46a4c6 makefile fixes (and add missing upnp.xml file) 2014-05-11 03:14:53 +00:00
Arvid Norberg 555efd9279 factor out address/endpoint I/O into it's own unit test. merge write_string from bencode and socket_io. extend unit test 2014-05-04 06:46:47 +00:00
Arvid Norberg 71561087fd fixes for test_utf8 and test_gzip 2014-05-03 05:17:50 +00:00
Arvid Norberg 43c41ddfb1 fixed bug in gunzip 2014-05-02 16:11:25 +00:00
Arvid Norberg b643962bfe merged fixes from RC_0_16 2014-03-06 10:06:41 +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 9fdae8f525 back ported bitfield test from libtorrent_aio 2013-12-24 08:34:30 +00:00
Arvid Norberg 444223c2e3 merged fixes from RC_0_16 2013-12-23 01:40:05 +00:00
Arvid Norberg 5910059869 test_natpmp is not a unit test 2013-12-16 00:38:46 +00:00
Arvid Norberg 7a98a4b201 fix makefiles 2013-12-15 23:20:23 +00:00
Arvid Norberg efd272681d merged makefile fixes from RC_0_16 2013-12-15 22:29:11 +00:00
Arvid Norberg d64d12e50d merge test_read_piece from RC_0_16 2013-11-24 01:32:51 +00:00
Arvid Norberg d04748f1db split up test_primitives some more 2013-09-01 06:52:50 +00:00
Arvid Norberg dd192cfd3c split up test_primitives into more tests (in an attempt to get the link-time down within the regression test time limit) 2013-09-01 01:10:50 +00:00
Arvid Norberg 6bd07fd65f pull in an ed25519 implementation and replace use of RSA in the DHT with ECC. fix up makefiles 2013-08-18 16:01:20 +00:00
Arvid Norberg 1f2d22604c add missing backslash in makefile 2013-06-30 18:52:49 +00:00
Arvid Norberg 91f8c32937 stub for file_storage test 2013-06-08 23:37:11 +00:00
Arvid Norberg c464dc2383 merged unit test from RC_0_16 2013-05-31 16:33:06 +00:00
Arvid Norberg bdf0e1764b merged fixes from RC_0_16 2013-05-11 22:00:54 +00:00
Arvid Norberg 4241e279bd more torrent parsing unit tests and fixing some previously broken by changes to parse_url_components 2013-02-26 07:32:53 +00:00
Arvid Norberg ba6770ccd8 more torrent parsing unit tests 2013-02-26 05:57:29 +00:00
Arvid Norberg 775cf5570a improve unit test coverage and fix handling of some invalid .torrent files and invalid utf-8 sequences 2013-02-25 01:54:38 +00:00
Arvid Norberg 3599b130c0 expand unit tests 2013-02-24 10:02:26 +00:00
Arvid Norberg 4b3d8f5739 merged makefile fixes from RC_0_16 2013-02-09 20:29:40 +00:00
Arvid Norberg 09946aee26 merged fix from RC_0_16 2013-01-31 03:39:14 +00:00
Arvid Norberg 7f4ca24f8b merged fix from RC_0_16 2013-01-15 05:33:24 +00:00
Arvid Norberg 38d7e58177 merge checking fix from RC_0_16 2013-01-06 04:53:26 +00:00
Arvid Norberg ac5a9e9882 introduce global connection priority for improved swarm performance 2012-12-31 06:54:54 +00:00
Arvid Norberg b14479132c add unit test for some filesystem functions, like listing directories 2012-06-29 23:10:28 +00:00
Arvid Norberg 42a5185f24 merged fix from RC_0_16 2012-06-05 05:55:40 +00:00
Arvid Norberg f36688a364 initial support for torrent tag store in DHT 2009-09-27 03:38:41 +00:00
cristiangreco 2fd925a4ae Rewrite autotools build system (new configure.ac, changes for various
Makefile.am and fixed m4 scripts). Could still need some fixes.
2009-09-10 02:22:13 +00:00
cg25 f283065cfc completely drop BOOST_MULTI_INDEX_DISABLE_SERIALIZATION define from all build
systems as multi_index is no more used in src/file_pool.cpp.
2009-08-21 20:19:55 +00:00
Arvid Norberg 359500da58 remove upnp-test from Makefile 2008-11-05 05:36:42 +00:00
Arvid Norberg 528a009f7f removed date-time and iostream from makefiles 2008-10-04 07:46:56 +00:00
roman_rybalko f9f7b689a3 automake build system fix: make dist always creates same dist regardless of configure parameters, test/Makefile.am made more clear 2008-09-02 11:14:10 +00:00
Arvid Norberg 9266afe5f5 fixed bug where a torrent would not get into the 'finished' state right after file checking. It would either go to downloading or seeding. Also added test_transfer 2008-08-18 20:02:50 +00:00
Arvid Norberg e8d691eed9 extended the test_torrent to torrents with 0 bytes 2008-08-17 11:42:57 +00:00
roman_rybalko 914dcac3d2 trunk:
moved to asio-1-0-0 from asio-head (get_asio & makefile fix)
tests moved to "check" target
2008-06-28 10:38:12 +00:00
roman_rybalko f5e567f3c5 Ticket #357 fix 2008-06-28 10:11:20 +00:00
cg25 71c4f6f9b6 * improved --with-asio configure option behaviour;
* using -version-info flag instead of -revision one for the sake of correct
  interface versioning;
* renaming library to libtorrent-rasterbar.so to avoind conflicting with other
  libraries.
2008-06-23 00:09:12 +00:00
Arvid Norberg e51c8bea37 added makefile support for boost.system (#322) 2008-05-11 22:43:44 +00:00
Arvid Norberg 1a0f8d5cd5 updated makefile to build all tests 2008-03-04 08:04:09 +00:00
Michael Wojciechowski bce53063ab Changed configure script to not to modify LIBS, when checking for dependencies. Changed libtorrent.pc.in again, since the libraries used were
wrong, because $LIBS was used. Corrected Makefile.am in test, examples and src.
2007-12-14 20:53:56 +00:00
Arvid Norberg 7cccdcaa7b makefile fixes 2007-12-09 01:21:20 +00:00
Arvid Norberg 844c5fa695 fixed makefile 2007-08-17 00:54:51 +00:00
Arvid Norberg ce8acd0911 added compiler flag to disable inclusion of boost.serialization headers 2007-08-01 07:26:10 +00:00
unsh 1e8b11adb3 updated makefiles for automake 2007-07-06 09:02:27 +00:00
unsh 31fb287c39 added test_swarm to Makefile.am 2007-06-20 07:56:48 +00:00
Arvid Norberg fa1a37e649 updated Jamfile to support openssl on windows, added missing files to makefiles and made test_pe_crypto build when encryption is disabled 2007-06-13 01:48:24 +00:00
Arvid Norberg 273f8bd921 merged back encryption branch to trunk 2007-06-06 00:41:20 +00:00
Arvid Norberg e50a7c10d2 updated Makefiles 2006-10-04 10:53:43 +00:00
Arvid Norberg 0f28b3ac5b removed -L./ from makefiles and made the tests not to be installed 2006-08-28 20:44:06 +00:00
Arvid Norberg 3e39b90158 updated makefiles to hopefully install the headers in the correct place. Updated docs to use boost 1.33.1 in examples. Changed libtorrent version to 0.10 and updated ChangeLog to prepare for release. 2006-06-25 00:12:18 +00:00
Arvid Norberg 903e11e458 moved the asio headers into the include directory, to have them installed when libtorrent is installed. improved the complexity of torrent_info::map_file(), It's now O(1). 2006-06-17 22:04:25 +00:00
Arvid Norberg 94628fa78d fixed race condition in peer_connection, fixed assert in torrent destructor, updated tests 2006-05-28 19:03:54 +00:00
Arvid Norberg 41810b1166 merged back the asio development branch 2006-04-25 21:04:48 +00:00
Michael Wojciechowski a0b4f3b3b6 Updated bin_PROGRAMS 2005-09-29 16:30:50 +00:00
Arvid Norberg 6d66566298 fixed problem with file pool when files were opened with 0 as info hash and attempted to close with the correct one. the info hash is no longer used as the key in the file pool. Also updated Makefile.am to include the buffer.hpp and .cpp and to include the storage unit test 2005-09-28 21:46:35 +00:00
peerkoel 77956fb5a6 Adding files to setup autotools.
Minor spelling fix in manual.html.
2005-08-17 00:24:41 +00:00