Files
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

20 lines
562 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
#
# vmtest.sh runs the tswg natlab vmtests, which live in a tailscale.com
# checkout (by default the one this is in; override with $TAILSCALE_DIR)
# under tstest/natlab/vmtest. Extra arguments are passed to "go test".
#
# usage: vmtest.sh [TEST_REGEXP [go test flags...]]
set -eu
top=$(cd "$(dirname "$0")/.." && pwd)
ts=${TAILSCALE_DIR:-$top/../..}
run=${1:-TestTSWG}
[ $# -gt 0 ] && shift
cd "$ts"
TSWG_TEST=1 TSWG_DIR=$top exec go test ./tstest/natlab/vmtest/ --run-vm-tests \
-run "$run" -v -timeout=30m "$@"