summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authoraizatsky <aizatsky@chromium.org>2015-12-15 20:55:52 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-16 04:56:39 +0000
commit2a45730f2e51c7dec4aab96286c9f75afebe50ad (patch)
treef447785f83f3a3c81c6c8bebf97820896b5361ab /testing
parent1d03256cb89ffdeee76bb10a0541cd93ad6fe893 (diff)
downloadchromium_src-2a45730f2e51c7dec4aab96286c9f75afebe50ad.zip
chromium_src-2a45730f2e51c7dec4aab96286c9f75afebe50ad.tar.gz
chromium_src-2a45730f2e51c7dec4aab96286c9f75afebe50ad.tar.bz2
libfuzzer: no_clusterfuzz config for disabling test from clusterfuzz.
The buildbot will use: gn refs out/Fuzzer --type=executable --as=output \ //testing/libfuzzer:no_clusterfuzz to filter out tests from a list of targets to build. BUG= Review URL: https://codereview.chromium.org/1526183005 Cr-Commit-Position: refs/heads/master@{#365449}
Diffstat (limited to 'testing')
-rw-r--r--testing/libfuzzer/BUILD.gn6
-rw-r--r--testing/libfuzzer/fuzzers/BUILD.gn1
2 files changed, 7 insertions, 0 deletions
diff --git a/testing/libfuzzer/BUILD.gn b/testing/libfuzzer/BUILD.gn
index e08e205..d5ec6326 100644
--- a/testing/libfuzzer/BUILD.gn
+++ b/testing/libfuzzer/BUILD.gn
@@ -34,3 +34,9 @@ static_library("libfuzzer_main") {
sources += [ "drfuzz_main.cc" ]
}
}
+
+# Noop config used to tag fuzzer tests excluded from clusterfuzz.
+# Libfuzzer build bot uses this to filter out targets while
+# building an archive for clusterfuzz.
+config("no_clusterfuzz") {
+}
diff --git a/testing/libfuzzer/fuzzers/BUILD.gn b/testing/libfuzzer/fuzzers/BUILD.gn
index 0ad4ef2..558a151 100644
--- a/testing/libfuzzer/fuzzers/BUILD.gn
+++ b/testing/libfuzzer/fuzzers/BUILD.gn
@@ -11,6 +11,7 @@ fuzzer_test("empty_fuzzer") {
sources = [
"empty_fuzzer.cc",
]
+ additional_configs = [ "//testing/libfuzzer:no_clusterfuzz" ]
}
fuzzer_test("brotli_fuzzer") {