Cockatrice/tests
Lukas Brübach 976a4a9a7e [Tests] Link gtest_main on the fetched-gtest path
The downloaded-gtest branch set GTEST_BOTH_LIBRARIES to `gtest` alone, while
FindGTest sets it to both halves. Every test target links that list rather than
picking an entry point, so on this path nothing provides main() and any test
source that does not define its own fails at link with `undefined reference to
main` pointing at crt1.o, naming neither gtest nor the line responsible.

That stayed latent while every test carried its own four-line main(). A test that
omits it now fails, and the error points at the C runtime rather than at gtest,
which is a long way from the cause. Restoring both halves makes the two paths
agree and drops the boilerplate requirement on new test sources.

The 18 sources that still define main() keep linking: gtest_main.cc defines
nothing but main, so the linker leaves its object in the archive unused rather
than reporting a duplicate.
2026-10-05 14:44:20 +02:00
..
card_zone_algorithms [Tests] Register each test case with CTest instead of each test binary 2026-10-05 08:20:09 +02:00
carddatabase [Tests] Register each test case with CTest instead of each test binary 2026-10-05 08:20:09 +02:00
deck_list_model [Tests] Register each test case with CTest instead of each test binary 2026-10-05 08:20:09 +02:00
deck_list_zones [Tests] Register each test case with CTest instead of each test binary 2026-10-05 08:20:09 +02:00
loading_from_clipboard [Tests] Register each test case with CTest instead of each test binary 2026-10-05 08:20:09 +02:00
movecard_tests [Tests] Register each test case with CTest instead of each test binary 2026-10-05 08:20:09 +02:00
oracle [Tests] Correct the note on the oracle test compression defines 2026-10-05 08:23:50 +02:00
picture_loader_benchmark [Tests] Register each test case with CTest instead of each test binary 2026-10-05 08:20:09 +02:00
settings [Tests] Register each test case with CTest instead of each test binary 2026-10-05 08:20:09 +02:00
theme_migration [Tests] Register each test case with CTest instead of each test binary 2026-10-05 08:20:09 +02:00
clamped_arithmetic_test.cpp Unify counter clamp arithmetic into shared addClamped() helper (#7009) 2026-06-28 16:10:57 -07:00
CMakeLists.txt [Tests] Link gtest_main on the fetched-gtest path 2026-10-05 14:44:20 +02:00
deck_hash_performance_test.cpp Hashing tests (#5026) 2025-12-23 17:48:10 +01:00
expression_test.cpp Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
lag_monitor_test.cpp [Client] Detect main-thread event loop stalls (#7155) 2026-08-23 00:53:40 +02:00
latency_tracker_test.cpp [Network] Measure real server round-trip times (#7153) 2026-08-23 00:03:52 +02:00
loader_local_matching_test.cpp [PictureLoader] Fix custom-folder pictures in subdirectories not loading (#7340) 2026-09-21 21:48:34 +02:00
metrics_registry_test.cpp [Client/Server/Protocol] Surface live metrics in the Developer tab (#7212) 2026-09-11 17:18:56 +02:00
password_hash_test.cpp [Security] Use a CSPRNG for salts, tokens, and RNG seeding (#7192) 2026-09-04 13:49:18 +02:00
playmat_resolver_test.cpp [Game] Playmats (#7101) 2026-08-21 10:40:49 +02:00
report_categories_test.cpp [Server/Client] Unify report categories (#7345) 2026-09-24 18:37:54 +02:00
server_card_counter_test.cpp Split trice_limits.h into dedicated headers (#7025) 2026-06-29 14:37:52 -07:00
server_counter_test.cpp Centralize counter API with server-side bounds and no-op filtering (#6879) 2026-05-21 20:39:35 -07:00
server_developer_role_test.cpp [Server/Client/Protocol] Add developer staff role (#7211) 2026-09-11 17:18:56 +02:00
server_game_join_test.cpp [Game] Allow judges to enter any game regardless of restrictions (#7315) 2026-09-19 10:39:52 +02:00
server_rate_limiter_test.cpp [PictureLoader] Schedule exponential backoff on 429 - Too many request handler and call failed on fail (#7053) 2026-08-08 22:55:27 +02:00
single_instance_manager_test.cpp [Client] Hand off single-instance payloads outside the readyRead signal (#7373) 2026-10-02 21:19:02 +02:00
test_age_formatting.cpp do not save a const reference to the user data in the info dialog (#6974) 2026-06-09 23:35:00 -07:00
translation_loader_test.cpp [Translations] Load Qt's own translations and build ours with the binary (#7384) 2026-10-03 15:04:30 +02:00
translation_loader_test.ts [Translations] Load Qt's own translations and build ours with the binary (#7384) 2026-10-03 15:04:30 +02:00
warning_categories_test.cpp [Server/Client/Protocol] Reporting users + moderation queue functionality (#7091) 2026-08-21 15:00:13 +02:00