transmission/tests/libtransmission
Yat Ho 2ff3ae07d1
fix: more misc `net.cc` fixes (#6735)
* feat: accept ipv6 string in square brackets for `tr_address::from_string()`

* test: add test case for ipv6 string in square brackets

* fix: include square brackets in host component

According to RFC3986:
  host       = IP-literal / IPv4address / reg-name
  IP-literal = "[" ( IPv6address / IPvFuture  ) "]"

* fix: set ipv6-only socket before binding UDP socket

Will return EINVAL on Linux otherwise

* refactor: simplify code using `evutil` when binding TCP socket

* fix: do not set SO_REUSEADDR for listening sockets on Windows systems

Reason: https://stackoverflow.com/a/14388707/11390656

* fix: do not enclose ipv4 address string in square brackets
2024-03-25 21:10:06 -05:00
..
assets fix: do not lose magnet links when upgrading from tr3 to 4 (#4840) 2023-02-12 18:10:54 -06:00
.clang-tidy refactor: fix cppcoreguidelines-avoid-do-while warnings (#6527) 2024-01-20 16:56:42 -06:00
CMakeLists.txt refactor: aggregate crypto handles when computing digests (#6662) 2024-03-04 16:59:51 -06:00
announce-list-test.cc bumping googletest from 1.11.0 to 1.14.0 (#6702) 2024-03-17 15:13:56 -05:00
announcer-test.cc fix: more misc `net.cc` fixes (#6735) 2024-03-25 21:10:06 -05:00
announcer-udp-test.cc refactor: tidy up announcer code (#5945) 2023-09-01 16:51:58 -05:00
benc-test.cc chore: fix minor clang-tidy warnings (#6275) 2023-11-21 09:02:03 -06:00
bitfield-test.cc refactor: fix cppcoreguidelines-avoid-do-while warnings (#6527) 2024-01-20 16:56:42 -06:00
block-info-test.cc refactor: tr_block_info cleanup (#6342) 2023-12-05 22:06:27 -06:00
blocklist-test.cc refactor: blocklists (#6189) 2023-10-31 19:20:01 -04:00
buffer-test.cc chore: fix minor clang-tidy warnings (#6275) 2023-11-21 09:02:03 -06:00
clients-test.cc chore: iwyu (#5746) 2023-07-08 10:24:03 -05:00
completion-test.cc refactor: convert `tr_peerMsgsImpl` helper functions to class methods (#6580) 2024-03-15 19:52:09 -05:00
copy-test.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
crypto-test.cc refactor: aggregate crypto handles when computing digests (#6662) 2024-03-04 16:59:51 -06:00
dht-test.cc feat: periodically refresh dht node id (#6695) 2024-03-17 18:24:36 -05:00
dns-test.cc perf: revert e065565cd to restore async dns lookups (#4182) 2022-11-15 11:16:49 -06:00
error-test.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
file-piece-map-test.cc refactor: tr_block_info cleanup (#6342) 2023-12-05 22:06:27 -06:00
file-test.cc refactor: libtransmission Settings (#6592) 2024-02-15 11:31:09 -06:00
getopt-test.cc chore: iwyu (#5746) 2023-07-08 10:24:03 -05:00
global-ip-cache-test.cc refactor: RPC `port-test` improvements (#6274) 2023-11-22 23:02:21 -06:00
handshake-test.cc fix: more clang-tidy warnings (#6608) 2024-02-17 13:31:49 -06:00
history-test.cc chore: iwyu (#5746) 2023-07-08 10:24:03 -05:00
json-test.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
lpd-test.cc Disable a long-lived and recurrent flaky test (#6722) 2024-03-25 00:32:29 -05:00
magnet-metainfo-test.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
makemeta-test.cc fix: don't create all 0-byte files in `MakemetaTest::makeRandomFiles()` (#6394) 2023-12-23 14:49:19 -06:00
move-test.cc fix: more clang-tidy warnings (#6608) 2024-02-17 13:31:49 -06:00
net-test.cc fix: more misc `net.cc` fixes (#6735) 2024-03-25 21:10:06 -05:00
open-files-test.cc refactor: constify the inout module (#6328) 2023-12-02 14:16:36 -06:00
peer-mgr-active-requests-test.cc fix: mismatched `class` forward declaration for `struct tr_peer` (#6725) 2024-03-25 12:00:26 -05:00
peer-mgr-wishlist-test.cc perf: restore `3.00` wishlist with cached candidates (#6549) 2024-02-05 00:14:34 -06:00
peer-msgs-test.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
platform-test.cc chore: iwyu (#5746) 2023-07-08 10:24:03 -05:00
quark-test.cc chore: iwyu (#5746) 2023-07-08 10:24:03 -05:00
remove-test.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
rename-test.cc refactor: c++ify libtransmission's tr_ctor struct (#6295) 2023-11-26 15:43:37 -06:00
rpc-test.cc fix: restore the `tag` key in RPC response (#6492) 2024-01-06 10:40:23 -06:00
session-alt-speeds-test.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
session-test.cc refactor: blocklists (#6189) 2023-10-31 19:20:01 -04:00
settings-test.cc refactor: libtransmission Settings (#6592) 2024-02-15 11:31:09 -06:00
strbuf-test.cc chore: fix minor clang-tidy warnings (#6275) 2023-11-21 09:02:03 -06:00
subprocess-test-program.cc refactor: use fstream in subprocess tests (#6733) 2024-03-25 09:13:09 -05:00
subprocess-test-script.cmd Combine all tests in a single executable to speed up the build 2021-08-16 23:16:36 +03:00
subprocess-test.cc refactor: remove TR_PATH_DELIMITER (#6618) 2024-02-18 01:47:12 -06:00
test-fixtures.h bumping googletest from 1.11.0 to 1.14.0 (#6702) 2024-03-17 15:13:56 -05:00
timer-test.cc Disable a long-lived and recurrent flaky test (#6722) 2024-03-25 00:32:29 -05:00
torrent-files-test.cc fix: appendSanitizedComponent is too aggressive on non-WIN32 (and not enough aggressive on WIN32) (#6187) 2023-11-03 00:25:42 -05:00
torrent-magnet-test.cc fix: more clang-tidy warnings (#6608) 2024-02-17 13:31:49 -06:00
torrent-metainfo-test.cc bumping googletest from 1.11.0 to 1.14.0 (#6702) 2024-03-17 15:13:56 -05:00
torrents-test.cc refactor: make tr_torrent::unique_id_ private (#6145) 2023-10-20 21:23:14 -05:00
tr-peer-info-test.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
utils-test.cc bumping googletest from 1.11.0 to 1.14.0 (#6702) 2024-03-17 15:13:56 -05:00
values-test.cc chore: fix minor clang-tidy warnings (#6275) 2023-11-21 09:02:03 -06:00
variant-test.cc fix: more clang-tidy warnings (#6608) 2024-02-17 13:31:49 -06:00
watchdir-test.cc Disable a long-lived and recurrent flaky test (#6722) 2024-03-25 00:32:29 -05:00
web-utils-test.cc fix: more misc `net.cc` fixes (#6735) 2024-03-25 21:10:06 -05:00