Leonardo Sandoval | 9dfdd1b | 2020-08-06 17:08:11 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 2 | # |
Leonardo Sandoval | 579c737 | 2020-10-23 15:23:32 -0500 | [diff] [blame] | 3 | # Copyright (c) 2019-2020 Arm Limited. All rights reserved. |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | pre_tf_build() { |
| 9 | echo "Configure coverity for full scan for MISRA defects." |
| 10 | |
| 11 | append_hook_var "cov_options" " ${coverity_default_checkers[*]}" |
| 12 | append_hook_var "cov_options" \ |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 13 | " --coding-standard-config $ci_root/coverity/MISRA_c2012_2_ARM_TF.config" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 14 | |
| 15 | # Branch description |
| 16 | set_hook_var "cov_checker" "misra" |
| 17 | |
| 18 | # Print full report |
| 19 | append_hook_var "cov_report_options" " --all" |
| 20 | set_hook_var "cov_run_type" "branch-report-full" |
| 21 | } |