mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 08:41:19 -08:00
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
20 lines
562 B
Bash
Executable File
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 "$@"
|