Skip to content

eBPF-based security platform

testing: rename check to ghchecks

Daniel Borkmann0d7d03a0ad76
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 2d890e9c..ec2867d7 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -58,4 +58,4 @@ jobs:
run: .github/scripts/ci-commit-range.sh .github/scripts/check-style.sh
- name: Test the checker against the fetched copy
- run: sh testing/check/t0043-check-style.sh
+ run: sh testing/ghchecks/t0003-check-style.sh
diff --git a/testing/check/t0041-check-dco.sh b/testing/ghchecks/t0001-check-dco.sh
similarity index 98%
rename from testing/check/t0041-check-dco.sh
rename to testing/ghchecks/t0001-check-dco.sh
index d70b1df9..713a1e3a 100755
--- a/testing/check/t0041-check-dco.sh
+++ b/testing/ghchecks/t0001-check-dco.sh
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c) 2026 Authors of shirudo
#
-# t0041 -- .github/scripts/check-dco.sh: the subject, body and sign-off every
+# t0001 -- .github/scripts/check-dco.sh: the subject, body and sign-off every
# commit needs, the forms it rejects, the author the sign-off must come
# from and the merge commits it skips, on a throwaway repository.
diff --git a/testing/check/t0042-check-spdx.sh b/testing/ghchecks/t0002-check-spdx.sh
similarity index 99%
rename from testing/check/t0042-check-spdx.sh
rename to testing/ghchecks/t0002-check-spdx.sh
index 370dab04..dd73b90a 100755
--- a/testing/check/t0042-check-spdx.sh
+++ b/testing/ghchecks/t0002-check-spdx.sh
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c) 2026 Authors of shirudo
#
-# t0042 -- .github/scripts/check-spdx.sh: the tag every source needs, its form
+# t0002 -- .github/scripts/check-spdx.sh: the tag every source needs, its form
# by file type, the two expressions, the dual licence of everything a
# BPF object compiles and a Beefile ships, the licences vendored C may
# carry, on a throwaway repository, and the tree itself.
diff --git a/testing/check/t0043-check-style.sh b/testing/ghchecks/t0003-check-style.sh
similarity index 99%
rename from testing/check/t0043-check-style.sh
rename to testing/ghchecks/t0003-check-style.sh
index 56e73898..475eec17 100644
--- a/testing/check/t0043-check-style.sh
+++ b/testing/ghchecks/t0003-check-style.sh
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c) 2026 Authors of shirudo
#
-# t0043 -- .github/scripts/check-style.sh: the kernel style checkpatch.pl
+# t0003 -- .github/scripts/check-style.sh: the kernel style checkpatch.pl
# enforces on the C a commit touches at 100 columns, the block-comment
# opener and the subject length the wrapper adds, the message of a commit
# that touches no C, the sources it leaves alone, the userspace spellings
diff --git a/testing/check/t0044-ci-commit-range.sh b/testing/ghchecks/t0004-ci-commit-range.sh
similarity index 96%
rename from testing/check/t0044-ci-commit-range.sh
rename to testing/ghchecks/t0004-ci-commit-range.sh
index 5c179411..4fa3a09a 100644
--- a/testing/check/t0044-ci-commit-range.sh
+++ b/testing/ghchecks/t0004-ci-commit-range.sh
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c) 2026 Authors of shirudo
#
-# t0044 -- .github/scripts/ci-commit-range.sh: the rev-list arguments a
+# t0004 -- .github/scripts/ci-commit-range.sh: the rev-list arguments a
# pull request, a push and a force push hand to a checker, on a throwaway
# repository.
diff --git a/testing/t0046-gen-sbom.sh b/testing/ghchecks/t0005-gen-sbom.sh
similarity index 98%
rename from testing/t0046-gen-sbom.sh
rename to testing/ghchecks/t0005-gen-sbom.sh
index bd2b11be..3330838f 100755
--- a/testing/t0046-gen-sbom.sh
+++ b/testing/ghchecks/t0005-gen-sbom.sh
@@ -2,11 +2,11 @@
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c) 2026 Authors of shirudo
#
-# t0046 -- .github/scripts/gen-sbom.sh: the SPDX documents a target and an
+# t0005 -- .github/scripts/gen-sbom.sh: the SPDX documents a target and an
# operator package get, against a staged dependency tree and stub dpkg
# tools, and the archives it refuses to leave out.
-cd "$(dirname "$0")"
+cd "$(dirname "$0")/.."
. ./test-lib.sh
for t in jq pkg-config sha256sum; do
command -v $t >/dev/null 2>&1 || test_skip_all "$t not installed"
diff --git a/testing/run-tests.sh b/testing/run-tests.sh
index a07ba623..2a14788f 100755
--- a/testing/run-tests.sh
+++ b/testing/run-tests.sh
@@ -28,7 +28,7 @@ for t in t0[0-9][0-9][0-9]-*.sh; do
fi
done
-for t in check/t0[0-9][0-9][0-9]-*.sh; do
+for t in ghchecks/t0[0-9][0-9][0-9]-*.sh; do
[ -e "$t" ] || continue
found=1
if sh "$t"; then