test(opatIO): added tests for opatIO

This commit is contained in:
2025-02-14 14:31:30 -05:00
parent cffec2f8d6
commit 3c969c6b39
4 changed files with 106 additions and 0 deletions

27
tests/opatIO/meson.build Normal file
View File

@@ -0,0 +1,27 @@
# Test files for opatIO
test_sources = [
'opatIOTest.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],
include_directories: include_directories('../../src/opatIO/public'),
link_with: libopatIO, # Link the dobj library
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