mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-27 12:06:31 -08:00
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
This commit is contained in:
1 parent
ff6f9e8409
commit
370c6a69ea
3 files changed
+49
-1
No files matched your search
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
#
|
||||
# vmtest.sh runs the tswg natlab vmtests, which live in a tailscale.com
|
||||
# checkout (default ~/src/tailscale.com-tswg, 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:-$HOME/src/tailscale.com-tswg}
|
||||
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 "$@"
|
||||
Reference in new issue
Block a user