2017-09-05 21:38:28 +00:00
|
|
|
tests = [
|
|
|
|
'test-chess-game',
|
|
|
|
'test-chess-pgn',
|
|
|
|
]
|
|
|
|
|
|
|
|
tests_vala_args = [
|
|
|
|
'--target-glib=@0@'.format(min_glib_version),
|
|
|
|
]
|
|
|
|
|
|
|
|
tests_c_args = [
|
|
|
|
'-include', 'config.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
tests_deps = [
|
|
|
|
glib,
|
|
|
|
gio,
|
|
|
|
libchess_dep,
|
|
|
|
]
|
|
|
|
|
|
|
|
foreach _test: tests
|
|
|
|
test_bin = executable(_test,
|
|
|
|
'@0@.vala'.format(_test),
|
|
|
|
include_directories: config_h_dir,
|
|
|
|
vala_args: tests_vala_args,
|
|
|
|
c_args: tests_c_args,
|
2018-03-11 17:41:45 +00:00
|
|
|
dependencies: tests_deps
|
2017-09-05 21:38:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
test(_test, test_bin)
|
|
|
|
endforeach
|