Lines Matching +full:oss +full:- +full:fuzz
1 ---
7 permalink: /getting-started/new-project-guide/bazel/
8 ---
13 - TOC
15 ---
20 build system with OSS-Fuzz is very similar to the general
21 [Setting up a new project]({{ site.baseurl }}/getting-started/new-project-guide/)
26 For Bazel-based projects, we recommend using the
28 for defining fuzz tests. `rules_fuzzing` provides support for building and running
29 fuzz tests under
30 [multiple sanitizer and fuzzing engine configurations][rules-fuzzing-usage].
31 It also supports specifying corpora and dictionaries as part of the fuzz test
34 The fuzzing rules provide out-of-the-box support for building and packaging fuzz
35 test artifacts in the OSS-Fuzz format. Each `//path/to:fuzz_test` fuzz test
37 (a) builds the fuzz test using the instrumentation and engine library specified
38 in the OSS-Fuzz environment variables, and (b) generates an archive containing
40 OSS-Fuzz provides a standard tool to automatically process these targets,
43 [rules-fuzzing-usage]: https://github.com/bazelbuild/rules_fuzzing#using-the-rules-in-your-project
47 This section explains how to integrate the fuzz tests written using the
48 `rules_fuzzing` library with OSS-Fuzz. You can also see a complete example in the
49 [`bazel-rules-fuzzing-test`](https://github.com/google/oss-fuzz/tree/master/projects/bazel-rules-fu…
52 The structure of the project directory in the OSS-Fuzz repository does not
53 differ for Bazel-based projects. The project files have the following specific
60 Since the OSS-Fuzz target builds the fuzz test using the instrumentation and
61 engine specified in the OSS-Fuzz environment variables, all the engine and
67 There is no need to install Bazel in your Docker image. The OSS-Fuzz builder
72 [`.bazelversion`](https://docs.bazel.build/versions/master/updating-bazel.html)
78 which fuzz tests to build, (2) building their OSS-Fuzz package targets in the
82 OSS-Fuzz provides a
83 [`bazel_build_fuzz_tests`](https://github.com/google/oss-fuzz/blob/master/infra/base-images/base-bu…
93 specify which target tags to use when determining what fuzz tests to include.
94 By default, the tool selects all the fuzz tests except for those tagged as
95 `"no-oss-fuzz"`.
97 the fuzz tests to build, if the tag-based approach is not sufficient.