VoidBuildSystem CI / 1 · Requirements (push) Successful in 6s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Failing after 1m32s
VoidBuildSystem CI / 2C · Windows native build (sanitizers) (push) Failing after 18s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Failing after 3m4s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 6m20s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 6m32s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Failing after 1m45s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Successful in 6m55s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 6m59s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 6m59s
VoidBuildSystem CI / 3C · Windows native test (sanitizers) (push) Failing after 15s
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) Failing after 1m47s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 2m4s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Successful in 1m6s
VoidBuildSystem CI / 4B · Windows package (sanitizers) (push) Successful in 12s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 4m2s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Successful in 1m44s
VoidBuildSystem CI / 3B · Windows Wine test (sanitizers) (push) Successful in 3m16s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 3m21s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 6m45s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 6m54s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Skipped
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 3m42s
Bump VoidLibrary to 482a3ea (Windows target support: qualified Configuration/Crypto/System/Archive, Windows DirectoryWatcher, TempDir/TempFile, process pipes) and port VBS's own host backends: - Toolchain: Windows/macOS host names and architectures without uname. - Platform FileOps: Win32 stat metadata, CreateFileW+LockFileEx file locks (Void FileLock is POSIX-only, Void/Library#66), no-op directory fsync, GetModuleFileNameW executable path, mtime via std::filesystem, and a file-copy fallback for the compdb alias. - ProcessSupervisor: Windows PATH/PATHEXT resolution and no POSIX waitpid reaping (job objects own descendants). - Snapshot: directory listing through std::filesystem on Windows. - Remote cache/registry client/CDash: curl or Winsock-based HTTP on Windows (Void::Net is not qualified there yet). - Daemon: explicit unsupported errors on Windows (named-pipe transport is Track C3); the registry service stays POSIX-only and is excluded from the Windows build. - StateStore/Sbom/Main/Graph: portable stat, time and path handling. Verified: MinGW-w64 GCC 16.2 builds vbs, vbs_describe, vbs_benchmarks and the sdk/core/v1/selfhost test executables; vbs runs under Wine and the SDK suite passes 17/17. The Linux suite stays green (8/8).
61 lines
3.3 KiB
CMake
61 lines
3.3 KiB
CMake
add_executable(vbs_sdk_tests SdkDeclarations.cpp ExampleContexts.cpp)
|
|
target_link_libraries(vbs_sdk_tests PRIVATE VoidBuild_ExampleDescription Void::Testing)
|
|
set_target_properties(vbs_sdk_tests PROPERTIES
|
|
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
|
|
add_test(NAME vbs_sdk_tests COMMAND "${CMAKE_COMMAND}"
|
|
"-DSDK_TESTS=$<TARGET_FILE:vbs_sdk_tests>" -P "${CMAKE_CURRENT_SOURCE_DIR}/RunSdkTests.cmake")
|
|
|
|
add_executable(vbs_core_tests CoreEngineTests.cpp)
|
|
target_include_directories(vbs_core_tests PRIVATE "${PROJECT_BINARY_DIR}/generated")
|
|
target_link_libraries(vbs_core_tests PRIVATE Void::BuildCore Void::Testing)
|
|
set_target_properties(vbs_core_tests PROPERTIES
|
|
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
|
|
add_test(NAME vbs_core_tests COMMAND "$<TARGET_FILE:vbs_core_tests>" --no-color)
|
|
|
|
set(VBS_V1_TEST_SOURCES FullV1Tests.cpp SigningTests.cpp SignatureEnforcementTests.cpp)
|
|
if(NOT WIN32)
|
|
# The daemon transport is POSIX-only until its Track C3 Windows port lands.
|
|
list(APPEND VBS_V1_TEST_SOURCES DaemonTests.cpp)
|
|
endif()
|
|
add_executable(vbs_v1_tests ${VBS_V1_TEST_SOURCES})
|
|
target_include_directories(vbs_v1_tests PRIVATE "${PROJECT_BINARY_DIR}/generated")
|
|
target_link_libraries(vbs_v1_tests PRIVATE Void::BuildCore Void::Testing)
|
|
set_target_properties(vbs_v1_tests PROPERTIES
|
|
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
|
|
add_test(NAME vbs_v1_tests COMMAND "$<TARGET_FILE:vbs_v1_tests>" --no-color)
|
|
|
|
if(NOT WIN32)
|
|
# The registry service is POSIX-only until its Track C3 Windows port lands.
|
|
add_executable(vbs_registry_tests RegistryTests.cpp)
|
|
target_include_directories(vbs_registry_tests PRIVATE "${PROJECT_BINARY_DIR}/generated")
|
|
target_link_libraries(vbs_registry_tests PRIVATE Void::BuildRegistry Void::Testing)
|
|
set_target_properties(vbs_registry_tests PROPERTIES
|
|
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
|
|
add_test(NAME vbs_registry_tests COMMAND "$<TARGET_FILE:vbs_registry_tests>" --no-color)
|
|
endif()
|
|
|
|
add_executable(vbs_selfhost_tests SelfHostTests.cpp)
|
|
target_include_directories(vbs_selfhost_tests PRIVATE "${PROJECT_BINARY_DIR}/generated")
|
|
target_compile_definitions(vbs_selfhost_tests PRIVATE
|
|
"VBS_VOID_SOURCE_PATH=\"${VBS_VOID_RESOLVED_SOURCE_DIR}\"")
|
|
target_link_libraries(vbs_selfhost_tests PRIVATE Void::BuildCore Void::Testing)
|
|
set_target_properties(vbs_selfhost_tests PROPERTIES
|
|
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
|
|
add_test(NAME vbs_selfhost_tests COMMAND "$<TARGET_FILE:vbs_selfhost_tests>" --no-color)
|
|
|
|
add_test(NAME vbs_sdk_registration COMMAND "${CMAKE_COMMAND}"
|
|
"-DSDK_TESTS=$<TARGET_FILE:vbs_sdk_tests>" -P "${CMAKE_CURRENT_SOURCE_DIR}/SdkRegistration.cmake")
|
|
if(TARGET vbs-registry)
|
|
set(VBS_REGISTRY_ARG "-DVBS_REGISTRY=$<TARGET_FILE:vbs-registry>")
|
|
else()
|
|
set(VBS_REGISTRY_ARG "")
|
|
endif()
|
|
add_test(NAME vbs_cli_contract COMMAND "${CMAKE_COMMAND}"
|
|
"-DVBS=$<TARGET_FILE:vbs>" "${VBS_REGISTRY_ARG}"
|
|
"-DVBS_VERSION=${PROJECT_VERSION}" "-DVBS_WINDOWS=${WIN32}"
|
|
-P "${CMAKE_CURRENT_SOURCE_DIR}/CliContracts.cmake")
|
|
add_test(NAME vbs_description_contract COMMAND "${CMAKE_COMMAND}"
|
|
"-DDESCRIBE=$<TARGET_FILE:vbs_describe>"
|
|
"-DEXPECTED_OS=${CMAKE_SYSTEM_NAME}" "-DEXPECTED_ARCH=${CMAKE_SYSTEM_PROCESSOR}"
|
|
-P "${CMAKE_CURRENT_SOURCE_DIR}/DescribeContracts.cmake")
|