[meson] Add first regression test to FreeType

* tests/README.md: documentation explaining how to
  build and run the tests with the Meson build.

* tests/scripts/download-test-fonts.sh: Simple script
  to download test font files to the 'tests/data/'
  folder.

* meson.build, meson_options.txt, tests/meson.build:
  Add 'tests' option to enable building and running the
  test programs, disabled by default.

* tests/issue-1063/main.c: Simple regression test to
  exhibit issue 1063.

* .gitignore: Ignore the content of the tests/data/
  folder for now.
This commit is contained in:
David Turner
2021-06-15 23:12:57 +02:00
parent c6fcd61228
commit 6f273f6878
7 changed files with 136 additions and 0 deletions

View File

@@ -369,6 +369,9 @@ pkgconfig.generate(ft2_lib,
version: ft2_pkgconfig_version,
)
if get_option('tests').enabled()
subdir('tests')
endif
# NOTE: Unlike the old `make refdoc` command, this generates the
# documentation under `$BUILD/docs/` since Meson doesn't support modifying