Now have more test for the base functionality but need to push render tests and find a way to test the GUI. I've also brought in sol2 for lua integration but not sure what to do with it.

This commit is contained in:
Zed A. Shaw 2024-11-30 10:43:25 -05:00
parent d0d62836e3
commit e86d474c7c
14 changed files with 188 additions and 8 deletions

View file

@ -8,10 +8,15 @@ ftxui_screen = dependency('ftxui-screen')
ftxui_dom = dependency('ftxui-dom')
ftxui_component = dependency('ftxui-component')
sfml = dependency('sfml')
lua = dependency('lua')
sol2 = dependency('sol2')
dependencies = [catch2, fmt,
ftxui_screen, ftxui_dom, ftxui_component,
json, sfml]
dependencies = [
catch2, fmt,
ftxui_screen, ftxui_dom,
ftxui_component, json,
sfml, lua, sol2
]
runtests = executable('runtests', [
'dbc.cpp',
@ -24,6 +29,7 @@ runtests = executable('runtests', [
'config.cpp',
'save.cpp',
'panel.cpp',
'render.cpp',
'tests/fsm.cpp',
'tests/dbc.cpp',
'tests/map.cpp',
@ -34,6 +40,8 @@ runtests = executable('runtests', [
'tests/ansi_parser.cpp',
'tests/config.cpp',
'tests/save.cpp',
'tests/render.cpp',
'tests/panel.cpp',
],
dependencies: dependencies)
@ -64,4 +72,9 @@ img2ansi = executable('img2ansi', [
],
dependencies: dependencies)
luatest = executable('luatest', [
'scratchpad/luatest.cpp'
],
dependencies: dependencies)
test('tests', runtests)