| 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",
|
| + ]
|
| +}
|
|
|