mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
3e2197a82a
Add a fixture for writing tests that require interaction with Glib event loop and a very basic test for SafeSignal.
36 lines
585 B
Meson
36 lines
585 B
Meson
test_inc = include_directories('../include')
|
|
test_dep = [
|
|
catch2,
|
|
fmt,
|
|
gtkmm,
|
|
jsoncpp,
|
|
spdlog,
|
|
]
|
|
|
|
config_test = executable(
|
|
'config_test',
|
|
'config.cpp',
|
|
'../src/config.cpp',
|
|
dependencies: test_dep,
|
|
include_directories: test_inc,
|
|
)
|
|
|
|
safesignal_test = executable(
|
|
'safesignal_test',
|
|
'SafeSignal.cpp',
|
|
dependencies: test_dep,
|
|
include_directories: test_inc,
|
|
)
|
|
|
|
test(
|
|
'Configuration test',
|
|
config_test,
|
|
workdir: meson.source_root(),
|
|
)
|
|
|
|
test(
|
|
'SafeSignal test',
|
|
safesignal_test,
|
|
workdir: meson.source_root(),
|
|
)
|