From 3ba67489ff02ee2ce1b17274cadbba8905fd57e5 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 17 Feb 2026 08:31:24 +0100 Subject: 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. --- pkg/clangtool/tooltest/tooltest.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg') 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 { -- cgit mrf-deployment