blob: 343496bc96133e81733553043cef9a51c105c50c [file]
# Copyright 2024 The Pigweed Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
# Adapted from @fuzztest//bazel:setup_configs
build:fuzztest --@pigweed//pw_toolchain/host_clang:fuzztest
build:fuzztest --dynamic_mode=off
build:fuzztest \
--per_file_copt=//common:,//fuzztest:,//centipede:,-//centipede/.*fuzz_target,googletest/.*,googlemock/.*@-fsanitize-coverage=0
build:fuzztest \
--@fuzztest//fuzztest:use_riegeli=false
build:fuzztest \
--@pigweed//pw_fuzzer:fuzztest_backend=@fuzztest//fuzztest:fuzztest_core
build:fuzztest \
--@pigweed//pw_unit_test:backend=@pigweed//pw_unit_test:googletest
build:fuzztest \
--@pigweed//pw_unit_test:main=@fuzztest//fuzztest:fuzztest_gtest_main
# TODO: https://pwbug.dev/390709187 - Re-enable layering check once the layering
# issues in the googletest backend are fixed.
build:fuzztest --features=-layering_check
# For fuzzing, we want to disregard any test strategy options and execute each
# test locally and one at a time. We also want to display as much information as
# soon as it is available, including PRNG seeds and corpus statistics.
# Both of these are achieved by streaming the test output.
test:fuzztest --test_output=streamed