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
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
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