.github/workflows: run one set of tests with the tailscale_go build tag

We use it to gate code that depends on custom Go toolchain, but it's
currently only passed in the corp runners. Add a set on OSS so that we
can catch regressions earlier.

To specifically test sockstats this required adding a build tag to
explicitly enable them -- they're normally on for iOS, macOS and Android
only, and we don't run tests on those platforms normally.

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
This commit is contained in:
Mihai Parparita
2023-04-12 15:50:52 -07:00
committed by Mihai Parparita
parent bb34589748
commit 782ccb5655
4 changed files with 16 additions and 5 deletions

View File

@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build tailscale_go && (darwin || ios || android)
//go:build tailscale_go && (darwin || ios || android || ts_enable_sockstats)
package sockstats
@ -24,9 +24,9 @@ func (t *testTime) Add(d time.Duration) {
func TestRadioMonitor(t *testing.T) {
tests := []struct {
name string
name string
activity func(*testTime, *radioMonitor)
want int64
want int64
}{
{
"no activity",