test/subset/run-tests.py

Branch


Log

Author Commit Date CI Message
Behdad Esfahbod eeabc29c 2025-05-17T11:24:51 [test/subset] Fix test-runner when ots is present
Garret Rieger 3e122d9d 2025-05-16T17:32:45 Disable OTS on the cmap4 overflow test case. The test file has been stripped of most tables to avoid checking in a very large font (since it has a high number of codepoints), which causes OTS to fail on missing required tables.
Behdad Esfahbod 21a67df4 2025-05-06T15:41:12 [run-tests.py] Clean up file descriptors
Behdad Esfahbod 1f055939 2025-04-06T15:39:19 [test/subset] Massage more
Behdad Esfahbod d8f00171 2025-04-06T15:33:25 [test/subset] black
Behdad Esfahbod c60067c6 2025-04-06T15:25:58 [test/subset] See if this fixes CI
Behdad Esfahbod aa6a37de 2025-04-06T14:13:18 [test/subset] Port to TAP
Behdad Esfahbod 5194ec47 2025-04-05T16:08:18 [test/subset] Use --preprocess instead of --preprocess-face The latter is obsolete and alias to the former.
Behdad Esfahbod 4d2a362f 2025-03-25T15:35:00 [test/subset] Remove tempdir Was creating a tempdir in /tmp for every single test item, and not removing it. Create one per test file, and remove if test successful.
Behdad Esfahbod e0aee581 2025-03-22T13:07:10 [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.
Behdad Esfahbod 19b4c6e5 2025-02-25T13:39:59 [subset] "Fix" subset tests after recent fvar/avar precision changes
Alexander Grund 70334d74 2024-09-11T14:30:32 Run subset tests with C-locale One problematic input is `--instance=wdth=112.5` which is parsed using the users local (`strtof`). So while in C or US locales it yields 112.5 in some European locales it yields 112 as the dot is not valid in this position. A European user might pass "112,5" instead but for the test the C locale is assumed, so enforce it. Fixes #4854
Qunxin Liu cfbb6a68 2024-03-14T17:33:34 [subset] support BASE table subsetting (#4618) * [subset] support BASE table * [subset] add tests for BASE table subsetting
Qunxin Liu 84771374 2024-01-26T15:45:32 [instancer] add tests for iup delta optimization
Garret Rieger eda02c2e 2022-12-05T20:18:41 [subset] Move hb_subset_preprocess to be non-experimental.
Garret Rieger 3394ec70 2022-10-13T23:02:54 [subset] use subset accelerator in tests. This ensures it produces equivalent subsets as without the accelerator.
Qunxin Liu 88c02e00 2022-08-26T08:34:12 [instance] add tests for full instancing Also update previous tests with GDEF/GPOS tables
Qunxin Liu f1a69ff1 2022-06-30T16:22:15 [instance] update scripts for testing instancing
Behdad Esfahbod b3f8288c 2022-02-12T14:52:42 [test/subset] Don't hash files without reason Fixes https://github.com/harfbuzz/harfbuzz/issues/3118#issuecomment-894021518
Behdad Esfahbod 58bfe407 2021-08-11T19:48:28 [util] Move hb-subset away from main-font-text
Behdad Esfahbod f3acb977 2021-08-10T11:05:40 [test/shaping;util] Use ';' instead of ':' to separate test fields Accept that in --batch mode. Also in batch mode don't send the 0th arg. Related discussion: https://github.com/harfbuzz/harfbuzz/pull/3102
Behdad Esfahbod b83fd3a5 2021-08-10T02:21:05 [util] Refactor batch-processing code into batch.hh
Khaled Hosny 84946e4d 2021-08-05T00:05:26 [test] Suggest updating the expectation if ttx matches https://github.com/harfbuzz/harfbuzz/issues/3089#issuecomment-892208892
Khaled Hosny f698fe5a 2021-08-04T12:08:18 [test] Always fail subset tests if hashes don’t match Regardless of the pre sentience or absence of fonttools.
Khaled Hosny 9f544e50 2021-08-04T04:20:14 [test] Don’t skip subset tests early Check for FontTools only when the checksums are mismatching.
Khaled Hosny 7ccc52b0 2021-08-04T03:57:18 [test] Compare sha256 hash before TTX dumps Most of time the files are identical, so instead of comparing the TTX dump we can check sha256 hashes of the files first and if they match, we don’t have to check the TTX dumps at all, making the subset tests orders of magnitude faster. time meson test --suite=subset down from: real 0m19.418s user 0m38.171s sys 0m3.587s to: real 0m3.102s user 0m8.622s sys 0m1.701s The expected files have been replaced by hb-subset output so they are bit-identical where FontTools output might not. The generate-expected-outputs.py now compares the hb-subset output with fontttols subset and errors of they don’t match.
Khaled Hosny 770fbd5a 2021-08-04T00:07:23 Revert "[test] Speed-up subset tests by saving TTX dump" This reverts commit 278f44dcee34cea25403e42e06668f0afe2328c1.
Khaled Hosny 10e73d18 2021-08-01T11:11:12 [test] Add batch mode to hb-subset and use it time meson test --suite=subset down from: real 0m22.822s user 0m44.561s sys 0m9.255s to: real 0m19.418s user 0m38.171s sys 0m3.587s Does not seem to help much, but it is something. Part of https://github.com/harfbuzz/harfbuzz/issues/3089
Khaled Hosny f6c67a5f 2021-07-30T02:20:19 [test] Open file in UTF-8 It is 2021 and Python still does not default to UTF-8 on Windows!
Khaled Hosny bafbade0 2021-07-30T01:42:45 [test] Force FontTools to use \n on all platforms On Windows in helfuly uses \r\n.
Khaled Hosny 278f44dc 2021-07-29T23:43:56 [test] Speed-up subset tests by saving TTX dump Speed-up subset tests by saving TTX dump of expected output instead of generating it each time the tests are run. Cuts down meson test --suite=subset on my system from: real 0m38.977s user 1m12.024s sys 0m10.547s to: real 0m22.291s user 0m44.548s sys 0m9.221s Part of https://github.com/harfbuzz/harfbuzz/issues/3089
Garret Rieger 6fddc2bb 2021-04-01T15:34:17 [subset] subset layout tables (G*) by default.
Ebrahim Byagowi d38d6331 2020-07-27T09:19:29 [tests] minor
Ebrahim Byagowi 322426f8 2020-07-27T09:03:35 [tests] Use TTFont of fonttools to avoid temp files
Hamidreza Bayat 08fef158 2020-07-26T17:16:07 Use fonttools's python package instead of cli
Ebrahim Byagowi 368ca306 2020-05-29T00:42:32 minor on python scripts * remove not needed imports * remove semicolons
Ebrahim Byagowi ad87155f 2020-05-29T00:11:19 minor, use py3's open(encoding=)
Ebrahim Byagowi cd5580e2 2020-05-28T23:43:55 minor, enable printing to stderr in run-tests.py As was originally intended https://github.com/harfbuzz/harfbuzz/blob/3ce6c7b/test/shaping/run-tests.sh
Ebrahim Byagowi 7554f618 2020-05-28T22:51:29 minor, use sys.exit print shorthand
Ebrahim Byagowi 0181f030 2020-04-20T17:07:09 [test] Workaround Windows pipe issue by storing ttx in a file
Christoph Reiter 2354a900 2020-04-18T20:28:25 tests: fix subset/run-tests.py under Windows It assumed that stdout of a subprocess in binary mode was using utf-8 which isn't the case. Instead open stdout of the subprocess in text mode and let Python handle the decoding.
Ebrahim Byagowi b5526a09 2020-03-18T23:58:20 [tools] Remove in-house 'which' now that we have py3
Ebrahim Byagowi 8d199077 2020-02-19T14:56:55 Remove python2 support from tests/utils scripts
ckitagawa 43b6c865 2020-01-09T10:44:20 [subset] Support sbix subsetting
blueshade7 0eef8113 2019-07-09T11:43:59 retain gids in HVAR so in sync with fontTools regenerate Comfortaa subset test results
blueshade7 6e35668b 2019-07-09T09:47:54 fix var-subset build
Michiharu Ariza 66361c72 2019-06-05T14:51:04 restore gvar/MVAR/HVAR tables in subset tests
Ebrahim Byagowi 13316ac5 2019-05-28T13:48:39 [test] minor style improve
Qunxin Liu 993d81b9 2019-05-14T13:55:11 [subset] Add one ttf file with fvar/STAT tables to integration test Ignore gvar/MVAR/HVAR table add support for --nameIDs=* option
Behdad Esfahbod 49b1c763 2019-05-02T16:19:34 [test] Run "fonttools ttx" instead of "ttx"
Michiharu Ariza bf4eb2e4 2018-09-18T15:53:37 Added SourceSansPro-Regular along as CFF full-font test case derived "expected" subset fonts from fonttools then manually tweaked further so they resemble hb-subset output
Ebrahim Byagowi f57804a8 2018-06-25T18:45:49 Resolve ttx absolute path before use (#1075)
violet-sippial 93b03119 2018-04-28T20:29:13 [subset] Do not compare ttx progress output in the tests Suppress progress messages of ttx. This avoids comparing this output to the reference file which lets the test fail.
Ebrahim Byagowi cab2c2c0 2018-03-29T12:48:47 Make more gen-* scripts py3 compatible (#940)
Ebrahim Byagowi 9206762b 2018-03-09T15:43:03 Make subset test runner compatible with py3 Fixes #873
Garret Rieger 9b00b9a1 2018-03-06T17:47:40 [subset] Fix deadlock waiting for process output in subset test runner.
Garret Rieger bfec28a7 2018-03-06T15:43:08 [subset] add some extra logging to subset run-tests.py.
Garret Rieger b4ba71ea 2018-02-28T15:44:00 [subset] In subset integration test pass output through ots-sanitize if present.
Garret Rieger 5241d7f4 2018-02-27T13:15:40 [subset] apply subset profiles (flags) to the subset integration tests.
Garret Rieger e15e41ef 2018-02-22T18:41:50 [subset] Remove commented code from run-tests.py.
Garret Rieger a88504c6 2018-02-22T14:28:18 [subset] Fix checksum clearning in subset test diff. Add an updated expected file (has cmap4 restored).
Garret Rieger 537698b6 2018-02-22T14:07:52 [subset] Don't compare actual to itself in Fix test/subset/run-tests. Print a diff on failure.
Garret Rieger 04c1ec2b 2018-02-14T17:00:18 [subset] Don't fail on different checksum adjustment in subsetting tests.
Behdad Esfahbod 41906cd5 2018-02-11T19:46:06 [subset] Another fixup I broke this in c31fcf4c58d96eb7d9781a986991b1a79ac7be44
Behdad Esfahbod e081c9e8 2018-02-08T17:44:24 Oops!
Behdad Esfahbod 1c49afe1 2018-02-08T17:38:58 Whitespace
Garret Rieger d4d120ad 2018-02-08T14:26:18 Skip subset to fonttools comparison test if TTX is not present.
Garret Rieger f9420d9e 2018-02-08T11:30:36 In the hb-subset to fontTools comparison, use ttx to compare the fonts. This allows for some binary differences such as re-ordered tables.
Garret Rieger 29d91528 2018-02-08T11:31:27 Whitespace
Garret Rieger 058b1260 2018-02-01T18:22:14 Re-write hb-subset utility to use main-font-text driver.
Rod Sheeter e9d154ac 2018-01-30T19:27:11 tweak test failure output. write to a temp file not stdout. test still fails because expected is not just an identical copy of input
Garret Rieger 5c63c37b 2018-01-26T16:57:42 WIP test runner for subset tests.