From cbb3c58300abf676fd746b6edcea721b074e9d9a Mon Sep 17 00:00:00 2001 From: BlackMark Date: Wed, 12 Aug 2026 23:20:36 +0200 Subject: [PATCH] test: the format and ASCII rules stop being a habit here too libavr's guidance binds this repo, and its gate checked every chip's codegen without ever checking whether the sources it compiled were clang-format clean or ASCII. `libavr_format_test()` does both now, over this tree alone - the oracle's assembly needs no exclusion, being in neither glob, which is the right answer for a vendored reference whose text is the artifact. The sizes this repo prints were already gated: `sizes.py check-readme` is the shape the rest of the fleet has now copied. Co-Authored-By: Claude Opus 5 --- CMakeLists.txt | 8 ++++++++ libavr | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5007318..e3bafb7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,10 +16,18 @@ if(NOT EXISTS ${LIBAVR_ROOT}/CMakeLists.txt) endif() add_subdirectory(${LIBAVR_ROOT} libavr-build) +include(${LIBAVR_ROOT}/cmake/checks.cmake) + if(PROJECT_IS_TOP_LEVEL) add_compile_options(-Werror) # warnings are errors for the port's own code enable_testing() + # Rules 11 and 33 over this repo's own sources. The oracle's assembly needs + # no exclusion: it is neither formatted nor ASCII-checked, being in neither + # glob, which is the right answer for a vendored reference whose text is + # the artifact. + libavr_format_test() + # The behavioral tests drive the real wire protocols over a simavr pty # (as the host tools do) and actually flash the device. The runners are # host programs built at configure time against libsimavr (C++23 - what diff --git a/libavr b/libavr index 99434fb..1412b71 160000 --- a/libavr +++ b/libavr @@ -1 +1 @@ -Subproject commit 99434fb29af18f219ba9d24ba22d4d068e5790bb +Subproject commit 1412b7173b5c343d225cced990473f5e6b510c32