test: add a test binary for foot, using the ‘check’ test framework

This commit is contained in:
Daniel Eklöf 2021-11-21 19:49:20 +01:00
parent fd26fadc2c
commit 30709b0968
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 76 additions and 0 deletions

View file

@ -6,3 +6,17 @@ config_test = executable(
dependencies: [pixman, xkb, fontconfig, fcft, tllist])
test('config', config_test)
if check.found()
foot_test = executable(
'test-foot',
'test-foot.c',
'../config.c', '../config.h',
'../tokenize.c', '../tokenize.h',
'../user-notification.c', '../user-notification.h',
wl_proto_headers,
dependencies: [check, pixman, xkb, fcft],
link_with: [common]
)
test('foot', foot_test)
endif