Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(925)

Unified Diff: testing/libfuzzer/tests/BUILD.gn

Issue 2610323002: [libfuzzer] support multiple seed_corpus directories. (Closed)
Patch Set: Add missing scripts Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing/libfuzzer/fuzzer_test.gni ('k') | testing/libfuzzer/tests/check_seed_corpus_archive.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/libfuzzer/tests/BUILD.gn
diff --git a/testing/libfuzzer/tests/BUILD.gn b/testing/libfuzzer/tests/BUILD.gn
index d0b1c4c2ea5c4bf3afc355f2d8b49e2f4c579905..07ecda4011fe1af9451c95b36d98b84e451bc1c5 100644
--- a/testing/libfuzzer/tests/BUILD.gn
+++ b/testing/libfuzzer/tests/BUILD.gn
@@ -13,6 +13,8 @@ test("libfuzzer_tests") {
]
deps = [
":test_config_and_dict",
+ ":test_config_and_seed_corpus",
+ ":test_config_and_seed_corpuses",
":test_config_only",
":test_dict_from_subdir",
":test_dict_only",
@@ -23,6 +25,7 @@ test("libfuzzer_tests") {
]
data_deps = [
":check_fuzzer_config",
+ ":check_seed_corpus_archive",
]
}
@@ -55,6 +58,31 @@ fuzzer_test("test_config_and_dict") {
]
}
+fuzzer_test("test_config_and_seed_corpus") {
+ sources = [
+ "../fuzzers/empty_fuzzer.cc",
+ ]
+ seed_corpus = "test_corpus"
+ libfuzzer_options = [
+ "some_test_option=test_value",
+ "max_len=1024",
+ ]
+}
+
+fuzzer_test("test_config_and_seed_corpuses") {
+ sources = [
+ "../fuzzers/empty_fuzzer.cc",
+ ]
+ seed_corpuses = [
+ "test_corpus",
+ "test_corpus_2",
+ ]
+ libfuzzer_options = [
+ "some_test_option=another_test_value",
+ "max_len=1337",
+ ]
+}
+
fuzzer_test("test_dict_from_subdir") {
sources = [
"../fuzzers/empty_fuzzer.cc",
@@ -70,3 +98,12 @@ copy("check_fuzzer_config") {
"$root_build_dir/check_fuzzer_config.py",
]
}
+
+copy("check_seed_corpus_archive") {
+ sources = [
+ "check_seed_corpus_archive.py",
+ ]
+ outputs = [
+ "$root_build_dir/check_seed_corpus_archive.py",
+ ]
+}
« no previous file with comments | « testing/libfuzzer/fuzzer_test.gni ('k') | testing/libfuzzer/tests/check_seed_corpus_archive.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698