Commit Graph
3 Commits
Author SHA1 Message Date
Brad Fitzpatrick 4ef2926ab4 kernel/linux, tstest: fix CI: skip tswg module tests by default, and vet
The natlab tswg tests and the ML-KEM test built the kernel module (or
mlkem.c) everywhere, including on macOS and Windows, and on Linux
without the kernel build dependencies (gelf.h). Skip them unless
TSWG_TEST is set, as vmtest.sh now does. The lean tests were already
opt-in, with TSWG_LEAN.

Also rename the "l" variables that cmd/vet rejects, regenerate
tstest/integration's deps for the new packages, and bound or clean the
tswgbench agent's request parameters that CodeQL flagged.

Updates #426

Signed-off-by: Brad Fitzpatrick <[email protected]>
Change-Id: I7241799b24c97b63c30591a664dc1c30db48ccc4
2026-11-09 17:04:20 +00:00
Brad Fitzpatrick 80c71a6b06 kernel/linux, tstest: find the tswg module in this repo
Now that the tswg kernel module is under kernel/linux, the tests and
scripts that build it default to that tree rather than a separate
~/src/tslinux checkout, and the scripts find the tailscale.com
checkout they're in. TSWG_DIR and TAILSCALE_DIR still override them.

Also rename the module's COPYING to LICENSE, give the ML-KEM test the
repo's license header (and skip it without a C compiler, now that it
runs with the rest of the module's tests), and update DESIGN.md for
the new layout, which no longer has a pristine upstream/ copy.

Updates #426

Signed-off-by: Brad Fitzpatrick <[email protected]>
Change-Id: Ifcd99dd6d2197550d9c4abd13d4d4d80ed26dc60
2026-11-09 15:47:37 +00:00
Brad Fitzpatrick 370c6a69ea kernel/linux/scripts: add build-for-ubuntu.sh and vmtest.sh
build-for-ubuntu.sh builds tswg.ko for a given Ubuntu kernel release in a
private copy of src/, so test builds for different guest kernels don't
share object files with each other or with a developer's in-place build.
The Makefile's SRC is now overridable to allow that.

vmtest.sh runs the tswg natlab vmtests, which live in a tailscale.com
checkout (on the bradfitz/tswg branch) because they use its natlab
framework and the Go tswg netlink client there.

Updates #426

Signed-off-by: Brad Fitzpatrick <[email protected]>
Change-Id: I00eb5cbf8df5a203d6d39d541779060db74da9a1
2026-11-06 21:06:08 +00:00