Skip to content

Commit b5c196c

Browse files
tetragon/windows: Fix unit tests for Windows in pkg folder
This PR includes changes to exclude bpftool, cgrouprate, alignchecker, addr_test, tracepoint and metricwithpod unit tests from Windows. Signed-off-by: Anadi Anadi<[email protected]>
1 parent 7a3d854 commit b5c196c

File tree

8 files changed

+16
-0
lines changed

8 files changed

+16
-0
lines changed

pkg/alignchecker/alignchecker_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// Copyright Authors of Tetragon
33

4+
//go:build !windows
5+
46
package alignchecker
57

68
import (

pkg/bugtool/maps_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// Copyright Authors of Tetragon
33

4+
//go:build !windows
5+
46
package bugtool
57

68
import (

pkg/cgrouprate/cgrouprate_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// Copyright Authors of Tetragon
33

4+
//go:build !windows
5+
46
package cgrouprate
57

68
import (

pkg/metrics/metricwithpod_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// Copyright Authors of Tetragon
33

4+
//go:build !windows
5+
46
package metrics_test
57

68
import (

pkg/policyfilter/map_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// Copyright Authors of Tetragon
33

4+
//go:build !windows
5+
46
package policyfilter
57

68
import (

pkg/policyfilter/state_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// Copyright Authors of Tetragon
33

4+
//go:build !windows
5+
46
package policyfilter
57

68
import (

pkg/server/addr_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// Copyright Authors of Tetragon
33

4+
//go:build !windows
5+
46
package server
57

68
import "testing"

pkg/tracepoint/tracepoint_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// Copyright Authors of Tetragon
33

4+
//go:build !windows
5+
46
package tracepoint
57

68
import (

0 commit comments

Comments
 (0)