freetype/tests/meson.build
Alex Richardson 7bc0f48c27 [tests] Allow arbitrary build directories.
* tests/issue-1063/main.c (main): I am building with a build
directory that is not directly inside the source tree, so the path
`../tests/data/As.I.Lay.Dying.ttf` does not resolve to the test
input file.  This change passes the test data directory as an
environment variable to allow arbitrary build directories.

* tests/meson.build: Updated.
2021-07-16 14:42:51 +02:00

15 lines
297 B
Meson

test_issue_1063 = executable('issue-1063',
files([ 'issue-1063/main.c' ]),
dependencies: freetype_dep,
)
test_env = ['FREETYPE_TESTS_DATA_DIR='
+ join_paths(meson.current_source_dir(), 'data')]
test('issue-1063',
test_issue_1063,
env: test_env,
suite: 'regression')
# EOF