36 Commits

Author SHA1 Message Date
Arvid Norberg 25c3db1ded run cppcheck on simulations. suppress false positives 2026-04-09 16:42:44 +02:00
Arvid Norberg 6e9c9102f8 add feature to only validate the v2 hashes for hybrid torrents 2026-04-02 00:52:22 +02:00
Arvid Norberg 8a43b43a76 only keep a pointer rather than a whole disk_buffer_holder in the cached_block_entry in the cache, decreasing the overhead of the cache 2026-03-29 11:43:28 +02:00
Arvid Norberg ead5c40a8d free disk buffers in bulk 2026-03-25 12:57:49 +01:00
Arvid Norberg c48cdadcdb Merge branch 'RC_2_0' 2025-03-30 17:50:07 +02:00
Arvid Norberg 2eeb6a1e0c fix issue in test_disk_io simulation event queue 2025-03-29 16:24:12 +01:00
Arvid Norberg 69001184e1 transition more test facilities to use add_torrent_params and load_torrent_buffer() instead of the deprecated use of torrent_info 2025-02-13 16:19:50 +01:00
arvidn 8eb40ded91 make status_t a proper flag type, to clean up oversized_file indication from disk subsystem 2023-01-16 16:28:11 +01:00
arvidn 24211e6729 merged RC_2_0 into master 2022-12-29 21:41:09 +01:00
arvidn 24fbc1c9a7 extend test_transfer to stop and resume from resume-data 2022-12-29 21:35:04 +01:00
arvidn d3966ab486 post torrent_removed_alert after actually removing it from the disk subsystem 2022-12-29 21:35:04 +01:00
arvidn cf678a9d62 extend transfer test matrix to include odd piece sizes and web seeds 2022-12-28 17:27:59 +01:00
arvidn e65623b317 add a simpler overload to bencode() returning a vector<char> 2022-12-19 02:57:06 +01:00
arvidn 6dd1e88cb1 introduce new API for create_torrent, to phase out the use of file_storage for creating torrents. Having a double-use for it complicates things 2022-10-09 08:23:43 +02:00
arvidn 9e0b1aecc5 use new create_torrent functions in tests and examples 2022-09-29 21:18:18 +02:00
arvidn 24a42189f4 merged RC_2_0 into master 2022-09-24 16:22:22 +02:00
arvidn e950d14775 fix uses of deprecated functions in simulations 2022-09-23 17:04:16 +02:00
arvidn d3d8bc7101 Merge branch 'RC_2_0' 2021-12-26 11:54:36 +01:00
arvidn 096544cfd1 factor out test_transfer_matrix into its own test executable 2021-12-08 08:15:36 +01:00
arvidn d8faaeef2c merged RC_2_0 into master 2021-11-04 21:04:33 +01:00
arvidn 0f8e466d5b improve merkle_tree tests by using an odd number of blocks 2021-10-26 12:48:00 +02:00
arvidn 34d78c500d test_disk_io.set_files 2021-10-26 12:48:00 +02:00
arvidn ab19b94d96 merged RC_2_0 into master 2021-09-28 11:32:16 +02:00
arvidn aa08941afc add support for larger pieces and multiple files in test_transfer 2021-09-27 10:58:46 +02:00
arvidn 139bf34b0c test receiving corrupt data 2021-09-11 12:57:50 +02:00
arvidn b1227d0297 improve simulated disk I/O to support reading unwritten pieces 2021-09-09 09:26:13 +02:00
arvidn 4bb9af9988 minor simplification to test_disk_io 2021-09-01 14:11:12 +02:00
arvidn 233b98c200 merged RC_2_0 into master 2021-07-24 14:54:48 -07:00
arvidn 73cfd18660 fix simulated disk io to support arbitrary pad files. add test 2021-07-12 14:41:25 -07:00
arvidn b9f8b5822f fix support for empty callbacks in simulated disk I/O 2021-07-12 14:41:25 -07:00
arvidn 2db8b54c08 update copyright headers in source files 2021-06-13 21:04:55 +02:00
arvidn ed2bcdd04d merged RC_2_0 into master 2021-06-13 11:32:34 +02:00
arvidn 1ff222cfb6 support pad files in test_disk_io 2021-06-13 11:14:37 +02:00
arvidn ebae801c09 merged RC_2_0 into master 2021-05-07 09:42:50 +02:00
arvidn c825113a40 use simulated disk in test_swarm 2021-05-07 08:48:58 +02:00
arvidn face5f0b93 add simulated disk I/O to the simulations, and use it in test_transfers. Add tests exercising the disk full condition, and ensure an auto-managed torrent will eventually recover, once there is disk space available 2021-05-05 14:24:03 +02:00