test(tests/eos): added eos tests

This commit is contained in:
2025-03-05 16:59:25 -05:00
parent 154004c8ca
commit 6a15129f1f
3 changed files with 94 additions and 0 deletions

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

@@ -0,0 +1,23 @@
# Test files for const
test_sources = [
'eosTest.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, eos_dep],
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