Behdad Esfahbod
48541baf09
[test/threads] Use focused shaping corpora ( #6183 )
...
The thread-safety test shaped entire books and a twelve-thousand-line word
list in every worker. That made it behave like a benchmark even though
the races it targets are exercised when threads concurrently initialize
and use a shared font.
Use the existing substantial paragraph corpora instead. They retain
Latin and Arabic-script coverage across every font backend and both
variable-font modes while reducing standalone runtime from about 1.09s
to 0.16s.
Also reset the worker start gate for every backend so each combination
actually begins concurrently instead of only synchronizing the first.
The full 270-test Meson suite passes, as does an 8-thread, 5-repetition
stress run.
Assisted-by: OpenAI Codex <codex@openai.com >
2026-08-19 14:20:54 -06:00
Behdad Esfahbod
bb7dbc25ec
Fix some unused-var warnings under NDEBUG
2026-01-10 07:42:07 -07:00
Behdad Esfahbod
7dcd69544b
[test/shape/threads] Reduce number of tested combinations
2025-04-05 17:08:31 -06:00
Behdad Esfahbod
c3eac5c0f3
[test-threads] Test all font-funcs
...
Fontations & Coretext are new and seems to pass.
2025-03-08 11:57:31 -07:00
Behdad Esfahbod
2a878b1b76
[font-funcs] Add two new API
...
+ hb_font_set_funcs_using()
+ hb_font_list_funcs()
Part of https://github.com/harfbuzz/harfbuzz/issues/5117
2025-03-08 11:50:53 -07:00
Behdad Esfahbod
1e2bd4983e
Another include fix
...
https://github.com/harfbuzz/harfbuzz/issues/4740#issuecomment-2148910890
2024-06-04 23:53:36 -06:00
Behdad Esfahbod
e9870e8d54
Add missing include
...
https://github.com/harfbuzz/harfbuzz/issues/4740#issuecomment-2148727072
2024-06-04 20:50:06 -06:00
Behdad Esfahbod
697287fbd7
[benchmark-shape,hb-shape-threads] Fix argument parsing order
...
After recent change.
2022-06-05 06:53:42 -06:00
Behdad Esfahbod
c03a31417b
[hb-shape-threads] Adjustments similar to benchmark-shape
...
Duplication sighz.
2022-06-05 02:31:21 -06:00
Behdad Esfahbod
d7c9cc34ae
Fix build
2022-06-05 02:30:11 -06:00
Behdad Esfahbod
b010962c3b
[test/hb-shape-threads] Silence hb_language_get_default() threadysafety issue
2022-05-30 05:34:25 -06:00
Behdad Esfahbod
4e59900ff5
[test/hb-shape-threads] Share font amongst threads
2022-05-30 05:21:55 -06:00
Behdad Esfahbod
18b0bd0f5f
[test/hb-shape-threads] Verify buffer
2022-05-30 05:12:12 -06:00
Behdad Esfahbod
484cc18732
[test-shape-threads] Set language
2022-05-30 05:09:53 -06:00
Behdad Esfahbod
f371789b40
Sprinkle static around
2022-05-30 05:09:53 -06:00
Behdad Esfahbod
e3d5a117a3
[hb-shape-threads] Fix tsan race
2022-05-30 05:09:53 -06:00
Behdad Esfahbod
33c990f0a9
Include cassert to fix bots
2022-05-30 05:09:53 -06:00
Behdad Esfahbod
f77faf8654
[hb-shape-threads] Allow overriding test parameters from cmdline
2022-05-30 05:09:53 -06:00
Behdad Esfahbod
f0fba59969
[hb-shape-threads] Reduce num-iterations
2022-05-30 05:09:53 -06:00
Behdad Esfahbod
e8a2436332
[threads] Add a condition_variable to test for all threads to be ready
2022-05-30 05:09:53 -06:00
Behdad Esfahbod
4d42a94c19
[threads] Add hb-shape-threads test
2022-05-30 05:09:53 -06:00