Files
opu/tests/CMakeLists.txt
T
yann64andClaude Opus 5.5 b2ca454d44
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
haiku: USB backend (Storage Kit), bundled doctest, VM sync tooling
- usb_haiku.cpp: lists /dev/disk/usb/* drives (never the boot volume),
  formats MBR + FAT32 at 1 MiB through BDiskDevice/BPartition, mounts,
  unmounts and ejects; modifications are cancelled on failure
- third_party/doctest (MIT single header) used when no system package
  exists (HaikuPorts has none)
- tools/haiku-vm.sh: sync command, dedicated SSH key; tools/qmp.py:
  typefile command and slower key pacing
- builds on Haiku R1/beta6 x86_64; usb-list sees the virtual stick.
  Known issue: some unit tests still fail on Haiku (to investigate).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-28 20:20:43 +01:00

26 lines
814 B
CMake

find_package(doctest QUIET)
add_executable(openpu_tests
main.cpp
test_vin.cpp
test_models.cpp
test_http.cpp
test_api_client.cpp
test_download.cpp
test_archive.cpp
test_storage.cpp
test_usb.cpp
test_app_update.cpp
)
find_package(LibArchive REQUIRED)
target_link_libraries(openpu_tests PRIVATE openpu_core openpu_warnings LibArchive::LibArchive)
if(TARGET doctest::doctest)
target_link_libraries(openpu_tests PRIVATE doctest::doctest)
else()
# Bundled single header (third_party/doctest, MIT) when the system has no doctest package.
target_include_directories(openpu_tests SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/third_party)
endif()
target_compile_definitions(openpu_tests PRIVATE OPENPU_FIXTURES_DIR="${CMAKE_CURRENT_SOURCE_DIR}/fixtures")
add_test(NAME openpu_tests COMMAND openpu_tests)