Commit Graph
43 Commits
Author SHA1 Message Date
Behdad Esfahbod cc884606bc [test/shape] --safe-to-insert-tatweel
At some point we should switch to --show-flags.
For now, tests all pass regardless of this switch.
2025-06-06 21:39:03 -06:00
Behdad Esfahbod 7908e86e35 [util/test-shape] Only output one line per test
If a shape call was failing, perhaps because of --verify failing,
hb-shape was producing multiple lines possibly, making the test
runner get out of sync and fail all following tests.

https://github.com/harfbuzz/harfruzz/issues/60
2025-06-06 20:19:06 -06:00
Behdad Esfahbod 19a5d1aabd [test/shape] Only do unsafe-to-concat check for ot shaper
For now, to get harfRuzz testing going better.
2025-05-07 16:57:19 -06:00
Behdad Esfahbod 2f7fbeeea2 [test/shape] Allow specifying shaper / face-loader as env-vars 2025-05-07 13:42:56 -06:00
Behdad Esfahbod 21a67df4c9 [run-tests.py] Clean up file descriptors 2025-05-06 15:42:48 -06:00
Behdad Esfahbod e31721b5cf [test/shape] Write cmdline as test description 2025-04-06 21:41:09 -06:00
Behdad Esfahbod c60067c675 [test/subset] See if this fixes CI 2025-04-06 15:25:58 -06:00
Behdad Esfahbod 8456c33ac3 [test/shape] Respect @face-loaders directive 2025-04-06 14:33:44 -06:00
Behdad Esfahbod 5efdb884a5 [run-tests] Fix remaining bot fails, fingers crossed 2025-04-06 03:21:15 -06:00
Behdad Esfahbod 8132a6607f [shape/run-tests] Don't return non-zero
TAP protocol.
2025-04-06 03:12:38 -06:00
Behdad Esfahbod ee50fad676 [run-tests] black 2025-04-06 02:34:48 -06:00
Behdad Esfahbod 69fd949014 [test/shape] Run using TAP protocol
Run all tests for a suite in one process. Saves runtime from
3s to 2s.
2025-04-06 02:34:48 -06:00
Behdad Esfahbod 2834900d92 [test/shape] Run each test suite in one process 2025-04-06 02:34:48 -06:00
Behdad Esfahbod c523f9ac13 [test/shape] Use TAP
Checkpoint.
2025-04-06 02:34:48 -06:00
Behdad Esfahbod c260550ae5 [test/shape] Improve run-tests output on failure 2025-03-28 16:34:12 -06:00
Behdad Esfahbod e16a985798 [test/shape/aots] Add directive to run with ot shaper only 2025-03-25 15:17:23 -06:00
Khaled Hosny 190ad35f71 [test/shape] Don’t skip test if hb-shape --list-* fails
This can happen with Wine when, e.g., `WINEPATH` is not set, and we
would silently skip the tests because lists of supported shapers etc.
are empty.
2025-03-25 16:34:19 +02:00
Behdad Esfahbod 46a30fe390 [test/shape] Respect @shapers directive 2025-03-24 18:23:34 -06:00
Behdad Esfahbod 55743b239f [test/shape] Skip uniscribe/directwrite shapers under Wine 2025-03-22 19:56:00 -06:00
Behdad Esfahbod e0aee5815a [test] Respect MESON_EXE_WRAPPER in more test runners
It's not working for me though. Meson doesn't seem to set WINEPATH
during testing.
2025-03-22 14:56:37 -06:00
Khaled Hosny 12e31ab7e8 [test] Allow running test suite under wine
Set exe_wrapper in the Windows cross files, which will cause unit tests
to be run with wine.

When we call the binary ourselves, e.g. in shape run-tests.py, we need
to check for MESON_EXE_WRAPPER env var (which meson sets automatically
if exe_wrapper is set) and use it.
2025-03-21 02:27:45 +02:00
Behdad Esfahbod 0349359ce6 [tests] Fix one test 2025-03-18 14:59:26 -06:00
Behdad Esfahbod ad9c473759 [test/shape] Make output less verbose 2025-03-17 21:05:21 -06:00
Behdad Esfahbod 630bc9b45d [coretext] Disable variation-selectors test :-( 2025-03-17 21:05:21 -06:00
Behdad Esfahbod 719dafdaad [test/shape] Allow comments in directives
Also adjust tests for directwrite font-funcs.
2025-03-17 21:05:21 -06:00
Behdad Esfahbod 27bb37c5d0 [test/shape] Fix reporting 2025-03-17 21:05:21 -06:00
Behdad Esfahbod 9a0802dbe5 [test/shape] Comments 2025-03-17 21:05:21 -06:00
Behdad Esfahbod ee34711d64 [test/shape] Allow directives to instruct what backends to test 2025-03-17 21:05:21 -06:00
Behdad Esfahbod 220a8b9496 [test/shape] Massage script some more 2025-03-17 21:05:21 -06:00
Behdad Esfahbod 7c248cccb5 [test/shape] Var rename 2025-03-17 21:05:21 -06:00
Behdad Esfahbod 3e137c8e8a [test/shape] Minor massage the runner 2025-03-17 21:05:21 -06:00
Behdad Esfahbod cf1772a492 [test/shape] Compare results without glyph names if needed
Enable fontations font-funcs, which mostly passes now.
2025-03-17 21:05:21 -06:00
Behdad Esfahbod a37fb2fbf7 [test/shape] Rename a couple of variables 2025-03-17 21:05:21 -06:00
Behdad Esfahbod 24f9fd46ce [test/shape] Restart hb-shape --batch process if killed 2025-03-17 21:05:21 -06:00
Behdad Esfahbod 5b3bf25bb8 [test/shape] Test all font-funcs backends if none specified
Disable fontations as it doesn't implement glyph names currently.
2025-03-17 21:05:21 -06:00
Behdad Esfahbod f16196a00e [test-shape] Assume ot shaper is default 2025-03-17 21:05:21 -06:00
Behdad Esfahbod 0d5795c0a5 [test/shape] Report shaper, face-loader, font-funcs 2025-03-17 21:05:21 -06:00
Behdad Esfahbod aacc667e51 [test/shape/run-tests] Streamline testing other backends 2025-03-17 21:05:21 -06:00
Behdad Esfahbod 98353ecefe [test] Run shape tests with C locale as well
https://github.com/harfbuzz/harfbuzz/pull/4857
2024-09-11 11:35:15 -07:00
Behdad Esfahbod fc9e6ae8d9 [run-tests.py] Write out the failing test 2022-07-30 12:02:36 -06:00
Behdad Esfahbod 33145a4b75 [test/shape] Pass --unsafe-to-concat to hb-shape 2022-05-31 06:36:08 -06:00
Khaled Hosny f76ffa8374 [build] Change how platform shaper tests are enable
Run the tests unconditionally and skip if the shaper is not available.
This fixes distcheck (https://github.com/harfbuzz/harfbuzz/pull/3504)
and shows SKIP for these tests instead of ignoring them.
2022-03-24 06:48:12 +02:00
Behdad Esfahbod e0d7060f80 [test] Rename shaping/ to shape/ 2021-08-11 18:49:59 -06:00