aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-02-17 08:31:24 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-02-17 09:06:16 +0000
commit3ba67489ff02ee2ce1b17274cadbba8905fd57e5 (patch)
treedb8a5635f2e9dfd032c5d8f51dc7df4b788673ae /pkg
parente439b9514d46c3749c3eea048df58219ba9ae65d (diff)
pkg/clangtool/tooltest: run clang tools tests only on linux
Currently only linux can build the clang tools, so skip tests on other OSes. syz-ci instances are currently broken on syz-agent build, but when they get past that they will likely hit test faililures.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/clangtool/tooltest/tooltest.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/clangtool/tooltest/tooltest.go b/pkg/clangtool/tooltest/tooltest.go
index e78a85b62..f911ddd40 100644
--- a/pkg/clangtool/tooltest/tooltest.go
+++ b/pkg/clangtool/tooltest/tooltest.go
@@ -10,17 +10,22 @@ import (
"io/fs"
"os"
"path/filepath"
+ "runtime"
"testing"
"github.com/google/go-cmp/cmp"
"github.com/google/syzkaller/pkg/clangtool"
"github.com/google/syzkaller/pkg/osutil"
"github.com/google/syzkaller/pkg/testutil"
+ "github.com/google/syzkaller/sys/targets"
)
var FlagUpdate = flag.Bool("update", false, "update golden files")
func TestClangTool[Output any, OutputPtr clangtool.OutputDataPtr[Output]](t *testing.T, tool string) {
+ if runtime.GOOS != targets.Linux {
+ t.Skip("clang tools can only be tested on linux")
+ }
ForEachTestFile(t, tool, func(t *testing.T, cfg *clangtool.Config, file string) {
out, err := clangtool.Run[Output, OutputPtr](cfg)
if err != nil {