Cockatrice/tests
Lukas Brübach 5aafeffe4c [Tests] Carry one CTest label per test instead of several
gtest_discover_tests() can hand CTest exactly one label. GoogleTestAddTests.cmake
accumulates its generated script with `foreach(arg ${ARGN})`, so a label list reaches
the CTestTestfile as bare `LABELS ci server`, and CTest reads only the first value of a
property and drops the rest without a word.

The `ci` label that is appended to every registered test was therefore absent from every
test that also asked for `server` or `bench`: `ctest -L ci` reported 400 of 469 cases,
and `ctest --print-labels` never listed a second label anywhere in the build.

Reduce each test to exactly one of `ci`, `server`, or `bench`, which is all the
selections need. The three now partition the suite exactly, 400 + 64 + 5 = 469, and
`ctest -LE bench` still means everything but benchmarks. A second label is now a
configure-time FATAL_ERROR rather than a line that quietly means something else.

Anything orthogonal to a test's kind belongs in a helper flag beside the label, so it
composes with the group instead of competing for the single slot.

Also raise DISCOVERY_TIMEOUT off GoogleTestAddTests' 5s default. A plain debug binary
answers --gtest_list_tests in 0.04s, but that budget is thin once several binaries
discover concurrently behind a -j build, and being over it fails at the *link* step with
a bare "Process terminated due to timeout" that points nowhere near the cause.
2026-10-05 09:48:22 +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] Carry one CTest label per test instead of several 2026-10-05 09:48:22 +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