eBPF-based security platform
testing: rename ghchecks to ci-checks
Daniel Borkmann989758b4dbc7
diff --git a/.github/scripts/tests.sh b/.github/scripts/tests.shindex fd3887a4..e7123cd6 100755--- a/.github/scripts/tests.sh+++ b/.github/scripts/tests.sh@@ -6,7 +6,7 @@# developer's host. setup makes the runner the VM host: KVM, the VM's# packages, a compatible LVH kernel or the Shirudo test kernel cache, and# the OpenSSL 3.5 toolchain from vm-toolchain.sh. run builds and runs the-# unit, ghchecks, functional and end2end tests, each family of target tests+# unit, ci-checks, functional and end2end tests, each family of target tests# in a VM of its own.## .github/scripts/tests.sh setup|rundiff --git a/AGENTS.md b/AGENTS.mdindex 173817b1..bf667904 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -337,7 +337,7 @@ one usually still compiles and passes tests.fix the warning rather than silence it. `WERROR=0` is for a compilernewer than the tree, while its new warnings get fixed.- `make tests` (or `make -C testing`) runs every test, and is what CI runs;- `make -C testing unit`, `ghchecks`, `functional` or `end2end` runs one+ `make -C testing unit`, `ci-checks`, `functional` or `end2end` runs onetier, `unit/<suite>` or `functional/<family>` part of one. The targettests (`t?1??`) run as root in QEMU/swtpm VMs, one fresh VM per family;`VM=0` leaves them out, and `make tests VM=0diff --git a/Documentation/testing.rst b/Documentation/testing.rstindex 19442b05..641ca70b 100644--- a/Documentation/testing.rst+++ b/Documentation/testing.rst@@ -21,7 +21,7 @@ sending a change.testing/unit/ unit tests, util/<m>.c by unit/<m>.c- ghchecks/ the scripts under .github/scripts+ ci-checks/ the scripts under .github/scriptsfunctional/<family>/ one command or mechanism at a timeend2end/ whole delivery paths on a test VMfuzz/ libFuzzer targets and seed corpora@@ -52,7 +52,7 @@ test families:=== ============================ ==========================================F Directory What it covers=== ============================ ==========================================-0 ``ghchecks/`` DCO, SPDX, style, commit range, SBOM+0 ``ci-checks/`` DCO, SPDX, style, commit range, SBOM1 ``functional/build/`` dispatch, static target, packaging,initrd installer, the test VM scripts2 ``functional/signing/`` keys, signatures, the trusted set@@ -77,13 +77,13 @@ test does not take a name of this form.--------------------``make tests`` or ``make -C testing``- Runs every test, tier by tier: ``unit``, ``ghchecks``, ``functional``+ Runs every test, tier by tier: ``unit``, ``ci-checks``, ``functional``and ``end2end``. CI runs the same.``make -C testing <tier>``Runs one tier. ``unit/<suite>`` runs one unit suite and``functional/<family>`` one family; ``make -C testing help`` lists- them. The unit tests and the ``ghchecks/`` tests run on the build+ them. The unit tests and the ``ci-checks/`` tests run on the buildhost.A functional or end-to-end tier runs its operator tests first, in numberdiff --git a/testing/Makefile b/testing/Makefileindex 27d98ec3..0369a158 100644--- a/testing/Makefile+++ b/testing/Makefile@@ -26,7 +26,7 @@ test-vm-arch = $(shell TEST_VM_ARCH='$(TEST_VM_ARCH)'; \. $(ROOT)/testing/vm/arch.sh && printf '%s' "$$$(1)").DEFAULT_GOAL := all-.PHONY: all help clean unit ghchecks functional end2end build-operator build-unit \+.PHONY: all help clean unit ci-checks functional end2end build-operator build-unit \test-helpers \fuzz bundle test-vm-bundle kernel bpf-next vm vm-console vm-ssh vm-stop vm-clean@@ -271,7 +271,7 @@ vm-tests = $(if $(filter 0,$(VM)),:,$(MAKE) $(addprefix vm-test-,$(1)))all:+$(Q)$(MAKE) unit- +$(Q)$(MAKE) ghchecks+ +$(Q)$(MAKE) ci-checks+$(Q)$(MAKE) functional+$(Q)$(MAKE) end2end@@ -282,8 +282,8 @@ $(addprefix unit/,$(UNIT_SUITES)): unit/%: build-unit$(Q)$(ROOT)/testing/run-tests.sh unit/$*# The tests of the scripts under .github/scripts, which need no build.-ghchecks:- $(Q)$(ROOT)/testing/run-tests.sh ghchecks+ci-checks:+ $(Q)$(ROOT)/testing/run-tests.sh ci-checksfunctional: build-operator$(Q)$(ROOT)/testing/run-tests.sh functional@@ -343,7 +343,7 @@ help:'Testing targets (make tests at the top runs the first):' \' make -C testing every test' \' make -C testing unit[/<suite>] suites: $(UNIT_SUITES)' \- ' make -C testing ghchecks the scripts CI runs' \+ ' make -C testing ci-checks the scripts CI runs' \' make -C testing functional[/<family>] families: $(FAMILIES)' \' make -C testing end2end' \' VM=0 leaves out the tests that boot a VM, which need root;' \diff --git a/testing/ghchecks/t0001-check-dco.sh b/testing/ci-checks/t0001-check-dco.shsimilarity index 100%rename from testing/ghchecks/t0001-check-dco.shrename to testing/ci-checks/t0001-check-dco.shdiff --git a/testing/ghchecks/t0002-check-spdx.sh b/testing/ci-checks/t0002-check-spdx.shsimilarity index 100%rename from testing/ghchecks/t0002-check-spdx.shrename to testing/ci-checks/t0002-check-spdx.shdiff --git a/testing/ghchecks/t0003-check-style.sh b/testing/ci-checks/t0003-check-style.shsimilarity index 100%rename from testing/ghchecks/t0003-check-style.shrename to testing/ci-checks/t0003-check-style.shdiff --git a/testing/ghchecks/t0004-ci-commit-range.sh b/testing/ci-checks/t0004-ci-commit-range.shsimilarity index 100%rename from testing/ghchecks/t0004-ci-commit-range.shrename to testing/ci-checks/t0004-ci-commit-range.shdiff --git a/testing/ghchecks/t0005-gen-sbom.sh b/testing/ci-checks/t0005-gen-sbom.shsimilarity index 100%rename from testing/ghchecks/t0005-gen-sbom.shrename to testing/ci-checks/t0005-gen-sbom.shdiff --git a/testing/functional/build/t1007-test-vm-cli.sh b/testing/functional/build/t1007-test-vm-cli.shindex f1947096..ca8ea0f2 100755--- a/testing/functional/build/t1007-test-vm-cli.sh+++ b/testing/functional/build/t1007-test-vm-cli.sh@@ -897,12 +897,12 @@ test_expect_success 'test-vm validates BPM OCI repository handoff as a pair' 'test_expect_success 'make -C testing runs every tier in order' 'grep -A4 "^all:$" ../testing/Makefile | sed -n "2,5s/.*\$(MAKE) //p" \>"$WORK/tiers" &&- [ "$(tr "\n" " " <"$WORK/tiers")" = "unit ghchecks functional end2end " ] &&+ [ "$(tr "\n" " " <"$WORK/tiers")" = "unit ci-checks functional end2end " ] &&grep -q "^bundle: test-vm-bundle" ../testing/Makefile'test_expect_success 'the runners split the tests by number' '- { echo "dirs=\"ghchecks functional/* end2end\""+ { echo "dirs=\"ci-checks functional/* end2end\""sed -n "/^operator_tests()/,/^}/p" run-tests.sh; echo operator_tests; } |sh >"$WORK/operator-tests" &&grep -q "^functional/upatch/t3001-" "$WORK/operator-tests" &&diff --git a/testing/run-tests.sh b/testing/run-tests.shindex 4939e1b6..dbbc5cc7 100755--- a/testing/run-tests.sh+++ b/testing/run-tests.sh@@ -2,7 +2,7 @@# SPDX-License-Identifier: BSD-2-Clause# Copyright (c) 2026 Authors of shirudo#-# testing/run-tests.sh [unit[/<suite>]|ghchecks|functional[/<family>]|end2end]...+# testing/run-tests.sh [unit[/<suite>]|ci-checks|functional[/<family>]|end2end]...# -- the tests of each tier named, all of them without an argument, that# run on the build host: the unit tests and the operator tests (t?0??) in# number order. The target tests run in the test VM through@@ -13,7 +13,7 @@ set -eucd "$(dirname "$0")"-[ $# -gt 0 ] || set -- unit ghchecks functional end2end+[ $# -gt 0 ] || set -- unit ci-checks functional end2endunits=dirs=for what; do