Nathaniel Brough | 9d9a20d | 2020-08-04 16:46:56 +0800 | [diff] [blame] | 1 | # Copyright 2021 The Pigweed Authors |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 | # use this file except in compliance with the License. You may obtain a copy of |
| 5 | # the License at |
| 6 | # |
| 7 | # https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations under |
| 13 | # the License. |
| 14 | |
| 15 | # Required for new toolchain resolution API. |
Nathaniel Brough | 3c81320 | 2021-03-23 16:30:31 +0800 | [diff] [blame] | 16 | build --incompatible_enable_cc_toolchain_resolution |
| 17 | |
Nathaniel Brough | 9d9a20d | 2020-08-04 16:46:56 +0800 | [diff] [blame] | 18 | # Required for combined code coverage reports. |
Nathaniel Brough | 3c81320 | 2021-03-23 16:30:31 +0800 | [diff] [blame] | 19 | coverage --experimental_generate_llvm_lcov |
Nathaniel Brough | 9d9a20d | 2020-08-04 16:46:56 +0800 | [diff] [blame] | 20 | coverage --combined_report=lcov |
| 21 | |
| 22 | # Enforces consistent action environment variables. This is important to |
| 23 | # address Protobuf's rebuild sensitivity on changes to the environment |
| 24 | # variables. |
Nathaniel Brough | b6b90d0 | 2021-05-11 11:32:17 +0800 | [diff] [blame] | 25 | build --incompatible_strict_action_env |
| 26 | |
| 27 | # Define the --config=asan-libfuzzer configuration. |
| 28 | build:asan-libfuzzer \ |
| 29 | --@rules_fuzzing//fuzzing:cc_engine=@rules_fuzzing//fuzzing/engines:libfuzzer |
| 30 | build:asan-libfuzzer \ |
| 31 | --@rules_fuzzing//fuzzing:cc_engine_instrumentation=libfuzzer |
Nathaniel Brough | b44d95e | 2021-07-15 10:39:47 +0800 | [diff] [blame] | 32 | build:asan-libfuzzer --@rules_fuzzing//fuzzing:cc_engine_sanitizer=asan |
| 33 | |
| 34 | # Configures toolchain with polyfill headers. |
| 35 | build --@rules_cc_toolchain_config//:user_defined=//pw_polyfill:toolchain_polyfill_overrides |
Jared Weinstein | 7c658f6 | 2021-07-19 12:59:44 -0700 | [diff] [blame^] | 36 | |
| 37 | # Specifies desired output mode for running tests. |
| 38 | # Valid values are |
| 39 | # 'summary' to output only test status summary |
| 40 | # 'errors' to also print test logs for failed tests |
| 41 | # 'all' to print logs for all tests |
| 42 | # 'streamed' to output logs for all tests in real time |
| 43 | # (this will force tests to be executed locally one at a time regardless |
| 44 | # of --test_strategy value). |
| 45 | test --test_output=errors |