test(tests): brought testing framework for logging from SERiF

This commit is contained in:
2025-06-21 08:17:56 -04:00
parent 94cf00f9e0
commit dcfab05961
5 changed files with 129 additions and 0 deletions

23
tests/logging/meson.build Normal file
View File

@@ -0,0 +1,23 @@
# Test files for dobj
test_sources = [
'loggingTest.cpp',
]
foreach test_file : test_sources
exe_name = test_file.split('.')[0]
message('Building test: ' + exe_name)
# Create an executable target for each test
test_exe = executable(
exe_name,
test_file,
dependencies: [gtest_dep, logging_dep, quill_dep, gtest_main],
install_rpath: '@loader_path/../../src' # Ensure runtime library path resolves correctly
)
# Add the executable as a test
test(
exe_name,
test_exe,
env: ['MESON_SOURCE_ROOT=' + meson.project_source_root(), 'MESON_BUILD_ROOT=' + meson.project_build_root()])
endforeach