This repo contains scripts used for testing regressions in FreeType.
The script checks a "base" version of freetype vs a "test" version.
Follow these steps to test freetype
- Build and install
ft-demoslinked with the "base" version of FreeType. - Call
./gen_base.sh - Build and install
ft-demoslinked with the "test" version of FreeType. - Call
./regression.sh - If regressions are found,
the script generates a file"report.tar.gz"
that contains webpages to browse the list of regressions.
The following environment variables can be used to configure the script:
-
FTT_BASE_TOOLS_DIR: Location of baseft-demos binaries(ftlint, ftgrid, etc)/usr/local/binby default
-
FTT_TEST_TOOLS_DIR: Location of testft-demosbinaries (ftlint, ftgrid, etc)/usr/local/binby default
-
FTT_BASE_OUTPUT_DIR: Where thegen_base.shoutput is stored.base/folder inside the repo by default
-
FTT_TEST_OUTPUT_DIR: Where theregression.shoutput is stored.test/folder inside the repo by default
CAUTION: The scripts erase the contents of the output folders,
so be careful not to store important data in those directories.
-
The scripts look for fonts inside the
fonts/folder,
if you want to add/remove a font,\ simply add/remove its font file there. -
The font sizes to generate/test
are located in an arrayfontsize_arrayin both scripts,
it can be used to configure which font sizes should be tested.
Since FreeType is on GitLab, you can see my branch here : https://gitlab.freedesktop.org/thesarthakbhardwaj/regressiontest/-/tree/Sarthak-GSOC-2021