- libopenpu : validation VIN, modèles JSON (getAvailableUpdate, devices), classification ecuType -> type/guide, sélection des mises à jour - couche Transport abstraite + implémentation libcurl (proxy env, redirections, streaming, timeout d'inactivité) - tolérance au EOF TLS sans close_notify de la passerelle Majestic, limitée aux corps délimités par la fermeture (ni Content-Length ni chunked) - openpu-cli : check / raw-devices / raw-updates - tests doctest (VIN, parsing, classification, client API avec faux transport), fixtures dont une capture réelle anonymisée (NAC wave 2) - qualité : presets CMake (debug, asan, tidy), .clang-tidy, tools/check.sh (tests, ASan/UBSan, valgrind, clang-tidy, cppcheck) - validé contre l'API réelle sur 3 véhicules (NAC w4, RCC, NAC w2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
17 lines
470 B
CMake
17 lines
470 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
|
|
)
|
|
target_link_libraries(openpu_tests PRIVATE openpu_core openpu_warnings)
|
|
if(TARGET doctest::doctest)
|
|
target_link_libraries(openpu_tests PRIVATE doctest::doctest)
|
|
endif()
|
|
target_compile_definitions(openpu_tests PRIVATE OPENPU_FIXTURES_DIR="${CMAKE_CURRENT_SOURCE_DIR}/fixtures")
|
|
|
|
add_test(NAME openpu_tests COMMAND openpu_tests)
|