From 7b84681e920e498236b20efc748010cbd9d0d2c9 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 20 Sep 2020 14:31:51 +0200 Subject: [PATCH] pkg/csource: don't test auto-generated files syz_mount_image tests are very large and TestSysTests takes too long. syz-imagegen that generates them does some of this testing (Deserialize/SerializeForExec). --- pkg/csource/csource_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go index ece28cd9..3eec9979 100644 --- a/pkg/csource/csource_test.go +++ b/pkg/csource/csource_test.go @@ -4,6 +4,7 @@ package csource import ( + "bytes" "fmt" "io/ioutil" "math/rand" @@ -152,6 +153,11 @@ func TestSysTests(t *testing.T) { if err != nil { t.Fatalf("failed to read %v: %v", file, err) } + // syz_mount_image tests are very large and this test takes too long. + // syz-imagegen that generates does some of this testing (Deserialize/SerializeForExec). + if bytes.Contains(data, []byte("# requires: manual")) { + continue + } p, err := target.Deserialize(data, prog.Strict) if err != nil { t.Fatalf("failed to parse program %v: %v", file, err)