Add focused coverage for the new GLib command stream helper. These tests verify that complete lines are emitted as they arrive and that EOF flushes a final unterminated line without duplicating a newline-terminated one. That behavior is the contract the custom module will rely on when its continuous command handling moves onto this helper. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
41 lines
729 B
Meson
41 lines
729 B
Meson
test_inc = include_directories('../../include')
|
|
|
|
test_dep = [
|
|
catch2,
|
|
fmt,
|
|
gtkmm,
|
|
jsoncpp,
|
|
spdlog,
|
|
]
|
|
test_src = files(
|
|
'../main.cpp',
|
|
'../config.cpp',
|
|
'../../src/config.cpp',
|
|
'JsonParser.cpp',
|
|
'SafeSignal.cpp',
|
|
'sleeper_thread.cpp',
|
|
'command.cpp',
|
|
'command_line_stream.cpp',
|
|
'css_reload_helper.cpp',
|
|
'../../src/util/css_reload_helper.cpp',
|
|
'../../src/util/command_line_stream.cpp',
|
|
)
|
|
|
|
if tz_dep.found()
|
|
test_dep += tz_dep
|
|
test_src += files('date.cpp')
|
|
endif
|
|
|
|
utils_test = executable(
|
|
'utils_test',
|
|
test_src,
|
|
dependencies: test_dep,
|
|
include_directories: test_inc,
|
|
)
|
|
|
|
test(
|
|
'utils',
|
|
utils_test,
|
|
workdir: meson.project_source_root(),
|
|
)
|