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 # LibFuzzer is a LLVM tool for coverage-guided fuzz testing. | 5 # LibFuzzer is a LLVM tool for coverage-guided fuzz testing. |
6 # See http://www.chromium.org/developers/testing/libfuzzer | 6 # See http://www.chromium.org/developers/testing/libfuzzer |
7 # | 7 # |
8 # To enable libfuzzer, 'use_libfuzzer' GN option should be set to true. | 8 # To enable libfuzzer, 'use_libfuzzer' GN option should be set to true. |
9 | 9 |
10 import("//build/config/features.gni") | 10 import("//build/config/features.gni") |
(...skipping 14 matching lines...) Expand all Loading... |
25 "../../third_party/llvm/lib/Fuzzer/FuzzerLoop.cpp", | 25 "../../third_party/llvm/lib/Fuzzer/FuzzerLoop.cpp", |
26 "../../third_party/llvm/lib/Fuzzer/FuzzerMain.cpp", | 26 "../../third_party/llvm/lib/Fuzzer/FuzzerMain.cpp", |
27 "../../third_party/llvm/lib/Fuzzer/FuzzerMutate.cpp", | 27 "../../third_party/llvm/lib/Fuzzer/FuzzerMutate.cpp", |
28 "../../third_party/llvm/lib/Fuzzer/FuzzerSHA1.cpp", | 28 "../../third_party/llvm/lib/Fuzzer/FuzzerSHA1.cpp", |
29 "../../third_party/llvm/lib/Fuzzer/FuzzerSanitizerOptions.cpp", | 29 "../../third_party/llvm/lib/Fuzzer/FuzzerSanitizerOptions.cpp", |
30 "../../third_party/llvm/lib/Fuzzer/FuzzerTraceState.cpp", | 30 "../../third_party/llvm/lib/Fuzzer/FuzzerTraceState.cpp", |
31 "../../third_party/llvm/lib/Fuzzer/FuzzerUtil.cpp", | 31 "../../third_party/llvm/lib/Fuzzer/FuzzerUtil.cpp", |
32 ] | 32 ] |
33 } else if (use_drfuzz) { | 33 } else if (use_drfuzz) { |
34 sources += [ "drfuzz_main.cc" ] | 34 sources += [ "drfuzz_main.cc" ] |
| 35 } else { |
| 36 sources += [ "unittest_main.cc" ] |
35 } | 37 } |
36 } | 38 } |
37 | 39 |
38 # Noop config used to tag fuzzer tests excluded from clusterfuzz. | 40 # Noop config used to tag fuzzer tests excluded from clusterfuzz. |
39 # Libfuzzer build bot uses this to filter out targets while | 41 # Libfuzzer build bot uses this to filter out targets while |
40 # building an archive for clusterfuzz. | 42 # building an archive for clusterfuzz. |
41 config("no_clusterfuzz") { | 43 config("no_clusterfuzz") { |
42 } | 44 } |
OLD | NEW |