mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 08:41:19 -08:00
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
20 lines
550 B
Bash
Executable File
20 lines
550 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_DIR=$top exec go test ./tstest/natlab/vmtest/ --run-vm-tests \
|
|
-run "$run" -v -timeout=30m "$@"
|