]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.fuzz] cmd/go: skip fuzz tests on unsupported platforms
authorJay Conrod <jayconrod@google.com>
Tue, 9 Feb 2021 21:09:30 +0000 (16:09 -0500)
committerJay Conrod <jayconrod@google.com>
Wed, 10 Feb 2021 18:20:23 +0000 (18:20 +0000)
For now, fuzzing is only supported on Darwin, Linux, and Windows. We
haven't testing shared memory communication between coordinator and
worker processes on other platforms. Currently, fuzz.CoordinateFuzzing
and RunFuzzWorker both panic with "unimplemented" messages.

Unfortunately, these may be masked by runtime.Goexit calls that
override panics, so some builders fail with

    test executed panic(nil) or runtime.Goexit

Change-Id: Ic7bd692461958626dd5c5bb31198aec86387bbd6
Reviewed-on: https://go-review.googlesource.com/c/go/+/290810
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
src/cmd/go/testdata/script/test_fuzz.txt
src/cmd/go/testdata/script/test_fuzz_cache.txt
src/cmd/go/testdata/script/test_fuzz_chatty.txt
src/cmd/go/testdata/script/test_fuzz_fuzztime.txt
src/cmd/go/testdata/script/test_fuzz_match.txt
src/cmd/go/testdata/script/test_fuzz_mutate_crash.txt
src/cmd/go/testdata/script/test_fuzz_mutator.txt

index 4a761d1fd9031af06703431d80e2c5d0bd7cdbbb..eb65e0db2a8d0d15a3e4ab4b341ee3644b649e0b 100644 (file)
@@ -1,3 +1,6 @@
+# TODO(jayconrod): support shared memory on more platforms.
+[!darwin] [!linux] [!windows] skip
+
 # Test that calling f.Error in a fuzz target causes a non-zero exit status.
 ! go test -fuzz=Fuzz -fuzztime=5s -parallel=1 error_fuzz_test.go
 ! stdout ^ok
index ad8334ae7dc18a2ff7c7d822361ea3b3ccea2915..b4f59271ea04fe3c786a594d27bec878985d69e2 100644 (file)
@@ -1,3 +1,6 @@
+# TODO(jayconrod): support shared memory on more platforms.
+[!darwin] [!linux] [!windows] skip
+
 [short] skip
 env GOCACHE=$WORK/cache
 
index a881d54bdc7cfd2f9e412aad4d0c396e6bf8d075..b70bb9e49f50d6c04b19de7b7a7194ef65a30c51 100644 (file)
@@ -1,3 +1,6 @@
+# TODO(jayconrod): support shared memory on more platforms.
+[!darwin] [!linux] [!windows] skip
+
 [short] skip
 
 # Run chatty fuzz targets with an error.
index 0fc2f74e319b048aaf5c577d2d59d315079efa96..1da095f06c7f1b59396ec658888478c6efb211b9 100644 (file)
@@ -1,3 +1,6 @@
+# TODO(jayconrod): support shared memory on more platforms.
+[!darwin] [!linux] [!windows] skip
+
 [short] skip
 
 # There are no seed values, so 'go test' should finish quickly.
index 6161438c2a2152f9819a25a66144a8bc08cc112e..44ebf0bf66134c4a3b2023c858257fa8bf5d5978 100644 (file)
@@ -1,3 +1,6 @@
+# TODO(jayconrod): support shared memory on more platforms.
+[!darwin] [!linux] [!windows] skip
+
 # Matches only fuzz targets to test.
 go test standalone_fuzz_test.go
 ! stdout '^ok.*\[no tests to run\]'
index 2d5e1e5fd76b30b54a03caa39878b00b6f92ae86..b45e7d77c71afe2fe10a147531a02451c4d90d57 100644 (file)
@@ -1,3 +1,6 @@
+# TODO(jayconrod): support shared memory on more platforms.
+[!darwin] [!linux] [!windows] skip
+
 # Tests that a crash caused by a mutator-discovered input writes the bad input
 # to testdata, and fails+reports correctly. This tests the end-to-end behavior
 # of the mutator finding a crash while fuzzing, adding it as a regression test
index bc7edf3cc5210fc7c7af86fee1fcf360532b2ad1..a84fc35c5cd8fd69d58d5a9dce3ac2ae8c9377b4 100644 (file)
@@ -1,3 +1,6 @@
+# TODO(jayconrod): support shared memory on more platforms.
+[!darwin] [!linux] [!windows] skip
+
 # Test basic fuzzing mutator behavior.
 #
 # fuzz_test.go has two fuzz targets (FuzzA, FuzzB) which both add a seed value.