test(System): replace host /bin utility assumptions with VoidProcessHelper (X-BASE-01)

This commit is contained in:
faumaray committed 2026-11-24 02:10:06 +03:00
1 parent 563da02c0f
commit 340acaec34
3 files changed
+194 -5

No files matched your search

+15 -2
View File
@@ -106,8 +106,21 @@ if(_all_generated)
DEPENDS VoidTests)
endif()
# ── Test-support libraries ────────────────────────────────────────────────────
# These are NOT test files; they are helper shared libs referenced by tests.
# ── Test-support executables & libraries ──────────────────────────────────────
# These are NOT test files; they are helper executables/libs referenced by tests.
if(TARGET VoidTests AND TARGET Void::System)
add_executable(VoidProcessHelper
"${CMAKE_CURRENT_SOURCE_DIR}/helpers/ProcessHelper.cpp")
set_target_properties(VoidProcessHelper PROPERTIES
CXX_STANDARD 26
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
VOID_TESTING_NO_AUTO_SCAN TRUE)
target_compile_definitions(VoidTests PRIVATE
"VOID_PROCESS_HELPER_PATH=\"$<TARGET_FILE:VoidProcessHelper>\"")
add_dependencies(VoidTests VoidProcessHelper)
endif()
if(TARGET Void::Plugin)
set(_test_plugin_src "${CMAKE_CURRENT_SOURCE_DIR}/plugins/TestPlugin.cpp")