Behdad Esfahbod
f3acb977ec
[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
3 years ago
Behdad Esfahbod
b83fd3a564
[util] Refactor batch-processing code into batch.hh
3 years ago
Khaled Hosny
84946e4d2c
[test] Suggest updating the expectation if ttx matches
...
https://github.com/harfbuzz/harfbuzz/issues/3089#issuecomment-892208892
3 years ago
Khaled Hosny
f698fe5aee
[test] Always fail subset tests if hashes don’t match
...
Regardless of the pre sentience or absence of fonttools.
3 years ago
Khaled Hosny
9f544e5008
[test] Don’t skip subset tests early
...
Check for FontTools only when the checksums are mismatching.
3 years ago
Khaled Hosny
7ccc52b075
[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.
3 years ago
Khaled Hosny
770fbd5aa6
Revert "[test] Speed-up subset tests by saving TTX dump"
...
This reverts commit 278f44dcee
.
3 years ago
Khaled Hosny
10e73d188a
[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
3 years ago
Khaled Hosny
f6c67a5fcf
[test] Open file in UTF-8
...
It is 2021 and Python still does not default to UTF-8 on Windows!
3 years ago
Khaled Hosny
bafbade087
[test] Force FontTools to use \n on all platforms
...
On Windows in helfuly uses \r\n.
3 years ago
Khaled Hosny
278f44dcee
[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
3 years ago
Garret Rieger
6fddc2bbf9
[subset] subset layout tables (G*) by default.
4 years ago
Khaled Hosny
5091ea7e24
Merge pull request #2733 from astiob/buffer-context-doc
...
[docs] Describe buffer context applicability more explicitly
4 years ago
Ebrahim Byagowi
d38d63319b
[tests] minor
4 years ago
Ebrahim Byagowi
322426f8c8
[tests] Use TTFont of fonttools to avoid temp files
4 years ago
Hamidreza Bayat
08fef15818
Use fonttools's python package instead of cli
4 years ago
Ebrahim Byagowi
368ca30641
minor on python scripts
...
* remove not needed imports
* remove semicolons
5 years ago
Ebrahim Byagowi
ad87155fd0
minor, use py3's open(encoding=)
5 years ago
Ebrahim Byagowi
cd5580e2d6
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
5 years ago
Ebrahim Byagowi
7554f618ec
minor, use sys.exit print shorthand
5 years ago
Ebrahim Byagowi
0181f03019
[test] Workaround Windows pipe issue by storing ttx in a file
5 years ago
Christoph Reiter
2354a90008
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.
5 years ago
Ebrahim Byagowi
b5526a09ff
[tools] Remove in-house 'which' now that we have py3
5 years ago
Ebrahim Byagowi
8d19907704
Remove python2 support from tests/utils scripts
5 years ago
ckitagawa
43b6c865ae
[subset] Support sbix subsetting
5 years ago
blueshade7
0eef8113d8
retain gids in HVAR so in sync with fontTools
...
regenerate Comfortaa subset test results
5 years ago
blueshade7
6e35668b45
fix var-subset build
5 years ago
Michiharu Ariza
66361c72f6
restore gvar/MVAR/HVAR tables in subset tests
6 years ago
Ebrahim Byagowi
13316ac5d4
[test] minor style improve
6 years ago
Qunxin Liu
993d81b9c5
[subset] Add one ttf file with fvar/STAT tables to integration test
...
Ignore gvar/MVAR/HVAR table
add support for --nameIDs=* option
6 years ago
Behdad Esfahbod
49b1c763a0
[test] Run "fonttools ttx" instead of "ttx"
6 years ago
Michiharu Ariza
bf4eb2e4cf
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
6 years ago
Ebrahim Byagowi
f57804a8a5
Resolve ttx absolute path before use ( #1075 )
6 years ago
violet-sippial
93b03119da
[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.
7 years ago
Ebrahim Byagowi
cab2c2c08c
Make more gen-* scripts py3 compatible ( #940 )
7 years ago
Ebrahim Byagowi
9206762bbd
Make subset test runner compatible with py3
...
Fixes #873
7 years ago
Garret Rieger
9b00b9a10d
[subset] Fix deadlock waiting for process output in subset test runner.
7 years ago
Garret Rieger
bfec28a7db
[subset] add some extra logging to subset run-tests.py.
7 years ago
Garret Rieger
b4ba71ea7c
[subset] In subset integration test pass output through ots-sanitize if present.
7 years ago
Garret Rieger
5241d7f4b9
[subset] apply subset profiles (flags) to the subset integration tests.
7 years ago
Garret Rieger
e15e41ef12
[subset] Remove commented code from run-tests.py.
7 years ago
Garret Rieger
a88504c601
[subset] Fix checksum clearning in subset test diff. Add an updated expected file (has cmap4 restored).
7 years ago
Garret Rieger
537698b601
[subset] Don't compare actual to itself in Fix test/subset/run-tests. Print a diff on failure.
7 years ago
Garret Rieger
04c1ec2b73
[subset] Don't fail on different checksum adjustment in subsetting tests.
7 years ago
Behdad Esfahbod
41906cd5ef
[subset] Another fixup
...
I broke this in c31fcf4c58
7 years ago
Behdad Esfahbod
e081c9e8fc
Oops!
7 years ago
Behdad Esfahbod
1c49afe179
Whitespace
7 years ago
Garret Rieger
d4d120ad79
Skip subset to fonttools comparison test if TTX is not present.
7 years ago
Garret Rieger
29d915284e
Whitespace
7 years ago
Garret Rieger
f9420d9eff
In the hb-subset to fontTools comparison, use ttx to compare the fonts. This allows for some binary differences such as re-ordered tables.
7 years ago