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

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

Issue 1867833002: [libfuzzer] store custom options in .GN build target instead of a separate file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update reference.md of libFuzzer & CF documentation. Created 4 years, 8 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/reference.md ('k') | testing/libfuzzer/tests/fuzzer_config_and_dict_test.options » ('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 755aa46903f1176452b8fae0b2dfd3d104bf9f17..d0b1c4c2ea5c4bf3afc355f2d8b49e2f4c579905 100644
--- a/testing/libfuzzer/tests/BUILD.gn
+++ b/testing/libfuzzer/tests/BUILD.gn
@@ -37,7 +37,10 @@ fuzzer_test("test_config_only") {
sources = [
"../fuzzers/empty_fuzzer.cc",
]
- libfuzzer_options = "fuzzer_config_only_test.options"
+ libfuzzer_options = [
+ "some_test_option=test_value",
+ "max_len=1024",
+ ]
}
fuzzer_test("test_config_and_dict") {
@@ -45,7 +48,11 @@ fuzzer_test("test_config_and_dict") {
"../fuzzers/empty_fuzzer.cc",
]
dict = "test.dict"
- libfuzzer_options = "fuzzer_config_and_dict_test.options"
+ libfuzzer_options = [
+ "max_len=random(1337, 31337)",
+ "timeout = 666",
+ "use_traces=1",
+ ]
}
fuzzer_test("test_dict_from_subdir") {
« no previous file with comments | « testing/libfuzzer/reference.md ('k') | testing/libfuzzer/tests/fuzzer_config_and_dict_test.options » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698