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

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

Issue 1703523002: [libfuzzer] support of custom libfuzzer options via .options file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nits in check_fuzzer_config.py script and fuzzer_launcher_test.cc Created 4 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/gen_fuzzer_runner.py ('k') | testing/libfuzzer/tests/check_fuzzer_config.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 7c74ffdec6c73beb80b1662ffb2ccfcfd6b2c953..755aa46903f1176452b8fae0b2dfd3d104bf9f17 100644
--- a/testing/libfuzzer/tests/BUILD.gn
+++ b/testing/libfuzzer/tests/BUILD.gn
@@ -12,27 +12,54 @@ test("libfuzzer_tests") {
"fuzzer_launcher_test.cc",
]
deps = [
- ":test_dict_launcher.sh",
+ ":test_config_and_dict",
+ ":test_config_only",
+ ":test_dict_from_subdir",
+ ":test_dict_only",
"//base",
"//testing/gmock",
"//testing/gtest",
"//testing/gtest:gtest_main",
]
data_deps = [
- ":print_args",
+ ":check_fuzzer_config",
]
}
-fuzzer_test_launcher("test_dict_launcher.sh") {
- fuzzer_name = "print_args.py"
- dict = "test_dict"
+fuzzer_test("test_dict_only") {
+ sources = [
+ "../fuzzers/empty_fuzzer.cc",
+ ]
+ dict = "test.dict"
+}
+
+fuzzer_test("test_config_only") {
+ sources = [
+ "../fuzzers/empty_fuzzer.cc",
+ ]
+ libfuzzer_options = "fuzzer_config_only_test.options"
+}
+
+fuzzer_test("test_config_and_dict") {
+ sources = [
+ "../fuzzers/empty_fuzzer.cc",
+ ]
+ dict = "test.dict"
+ libfuzzer_options = "fuzzer_config_and_dict_test.options"
+}
+
+fuzzer_test("test_dict_from_subdir") {
+ sources = [
+ "../fuzzers/empty_fuzzer.cc",
+ ]
+ dict = "dicts_subdir/test_subdir.dict"
}
-copy("print_args") {
+copy("check_fuzzer_config") {
sources = [
- "print_args.py",
+ "check_fuzzer_config.py",
]
outputs = [
- "$root_build_dir/print_args.py",
+ "$root_build_dir/check_fuzzer_config.py",
]
}
« no previous file with comments | « testing/libfuzzer/gen_fuzzer_runner.py ('k') | testing/libfuzzer/tests/check_fuzzer_config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698