From a86ce602b3ba792d0584efc6e0fb485c8f629ca4 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Tue, 2 Jun 2020 11:45:24 -0700 Subject: syz-runtest: disable csource tests for HostFuzzer targets HostFuzzer targets require that we cross-compile the csource tests and then copy them to the target system. The code to copy files is currently missing from syz-runtest; also, at least for Fuchsia (which uses HostFuzzer mode), cross-compiling is non-trivial. --- pkg/runtest/run.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkg') diff --git a/pkg/runtest/run.go b/pkg/runtest/run.go index 39d65b245..fa85563ee 100644 --- a/pkg/runtest/run.go +++ b/pkg/runtest/run.go @@ -222,6 +222,13 @@ func (ctx *Context) generatePrograms(progs chan *RunRequest) error { } ctx.produceTest(progs, req, name, properties, requires, results) } + + if sysTarget.HostFuzzer { + // For HostFuzzer mode, we need to cross-compile + // and copy the binary to the target system. + continue + } + name := name properties["C"] = true properties["executor"] = false -- cgit mrf-deployment