OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 # | 4 # |
5 # Fuzzing Infrastructure Tests | 5 # Fuzzing Infrastructure Tests |
6 | 6 |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 import("//testing/libfuzzer/fuzzer_test.gni") | 8 import("//testing/libfuzzer/fuzzer_test.gni") |
9 | 9 |
10 test("libfuzzer_tests") { | 10 test("libfuzzer_tests") { |
(...skipping 19 matching lines...) Expand all Loading... |
30 sources = [ | 30 sources = [ |
31 "../fuzzers/empty_fuzzer.cc", | 31 "../fuzzers/empty_fuzzer.cc", |
32 ] | 32 ] |
33 dict = "test.dict" | 33 dict = "test.dict" |
34 } | 34 } |
35 | 35 |
36 fuzzer_test("test_config_only") { | 36 fuzzer_test("test_config_only") { |
37 sources = [ | 37 sources = [ |
38 "../fuzzers/empty_fuzzer.cc", | 38 "../fuzzers/empty_fuzzer.cc", |
39 ] | 39 ] |
40 libfuzzer_options = "fuzzer_config_only_test.options" | 40 libfuzzer_options = [ |
| 41 "some_test_option=test_value", |
| 42 "max_len=1024", |
| 43 ] |
41 } | 44 } |
42 | 45 |
43 fuzzer_test("test_config_and_dict") { | 46 fuzzer_test("test_config_and_dict") { |
44 sources = [ | 47 sources = [ |
45 "../fuzzers/empty_fuzzer.cc", | 48 "../fuzzers/empty_fuzzer.cc", |
46 ] | 49 ] |
47 dict = "test.dict" | 50 dict = "test.dict" |
48 libfuzzer_options = "fuzzer_config_and_dict_test.options" | 51 libfuzzer_options = [ |
| 52 "max_len=random(1337, 31337)", |
| 53 "timeout = 666", |
| 54 "use_traces=1", |
| 55 ] |
49 } | 56 } |
50 | 57 |
51 fuzzer_test("test_dict_from_subdir") { | 58 fuzzer_test("test_dict_from_subdir") { |
52 sources = [ | 59 sources = [ |
53 "../fuzzers/empty_fuzzer.cc", | 60 "../fuzzers/empty_fuzzer.cc", |
54 ] | 61 ] |
55 dict = "dicts_subdir/test_subdir.dict" | 62 dict = "dicts_subdir/test_subdir.dict" |
56 } | 63 } |
57 | 64 |
58 copy("check_fuzzer_config") { | 65 copy("check_fuzzer_config") { |
59 sources = [ | 66 sources = [ |
60 "check_fuzzer_config.py", | 67 "check_fuzzer_config.py", |
61 ] | 68 ] |
62 outputs = [ | 69 outputs = [ |
63 "$root_build_dir/check_fuzzer_config.py", | 70 "$root_build_dir/check_fuzzer_config.py", |
64 ] | 71 ] |
65 } | 72 } |
OLD | NEW |