eBPF-based security platform
docs: validation with both GCC and Clang
Andrea Lattuada9bc87970062e
diff --git a/AGENTS.md b/AGENTS.mdindex 960ee029..d7e6cc19 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -500,6 +500,8 @@ one usually still compiles and passes tests.objects, vendored libbpf, test helpers and fuzz targets included;fix the warning rather than silence it. `WERROR=0` is for a compilernewer than the tree, while its new warnings get fixed.+- Validate C changes, test code included, with both GCC and Clang.+ Use `make -B` when switching `CC` to avoid reusing objects.- `make tests` (or `make -C testing`) runs every test, and is what CI runs;`make -C testing unit`, `ci-checks`, `functional` or `end2end` runs onetier, `unit/<suite>` or `functional/<family>` part of one. The targetdiff --git a/Documentation/contribute/testing/testing.rst b/Documentation/contribute/testing/testing.rstindex 4ba4388c..6c10a2ac 100644--- a/Documentation/contribute/testing/testing.rst+++ b/Documentation/contribute/testing/testing.rst@@ -204,6 +204,14 @@ uses the binaries in the checkout root, so build them first:A target test runs only in a VM, with its family or by hand in aninteractive VM, see :ref:`testing-by-hand`.+CI builds with both GCC and Clang using ``-Werror``.+Use ``-B`` when switching ``CC`` to avoid reusing objects:++.. code-block:: console++ $ make -B -C testing unit/<suite> CC=<gcc>+ $ make -B -C testing unit/<suite> CC=<clang>+Read the results~~~~~~~~~~~~~~~~