test: add tests for waybar_time formatter

This commit is contained in:
Aleksei Bavshin
2022-01-07 19:32:18 -08:00
parent 8c41aaae04
commit 766c8a1035
2 changed files with 101 additions and 3 deletions

View File

@ -6,13 +6,21 @@ test_dep = [
jsoncpp,
spdlog,
]
waybar_test = executable(
'waybar_test',
test_src = files(
'main.cpp',
'SafeSignal.cpp',
'config.cpp',
'../src/config.cpp',
)
if tz_dep.found()
test_dep += tz_dep
test_src += files('waybar_time.cpp')
endif
waybar_test = executable(
'waybar_test',
test_src,
dependencies: test_dep,
include_directories: test_inc,
)