[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.
This commit is contained in:
Khaled Hosny 2021-08-04 03:57:18 +02:00
parent 770fbd5aa6
commit 7ccc52b075
948 changed files with 60 additions and 6 deletions

Some files were not shown because too many files have changed in this diff Show More