mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-20 07:16:14 +08:00
coverity tooling: use 2020.09 and fix tests
This commit is contained in:
parent
0f80c6dea4
commit
aafc8ac71b
|
@ -1,13 +1,12 @@
|
|||
COVLOGIN=myemail@corp.com
|
||||
COVTOKEN=aAbBcCdDeEfFgGhHiIjJkK
|
||||
# Toolchain available at https://scan.coverity.com/download
|
||||
COVBINDIR="/opt/cov-analysis-linux64-2019.03/bin"
|
||||
COVBINDIR="/opt/cov-analysis-linux64-2020.09/bin"
|
||||
# Nickname included in scan description:
|
||||
NICKNAME=myself
|
||||
# cov can't read gcov from gcc > 7
|
||||
HOSTCC=gcc-7
|
||||
HOSTCXX=g++-7
|
||||
HOSTLD=g++-7
|
||||
HOSTCC=gcc-10
|
||||
HOSTCXX=g++-10
|
||||
HOSTLD=g++-10
|
||||
|
||||
# Do not change it:
|
||||
COVDIR=cov-int
|
||||
|
|
|
@ -17,8 +17,7 @@ cov-build --dir "$COVDIR" --c-coverage=gcov --no-network-coverage --no-generate-
|
|||
#########################################
|
||||
# Build ARM, no test coverage #
|
||||
#########################################
|
||||
cov-build --dir "$COVDIR" --no-generate-build-id --force make bootrom
|
||||
cov-build --dir "$COVDIR" --no-generate-build-id --force make fullimage
|
||||
cov-build --dir "$COVDIR" --no-generate-build-id --force make recovery
|
||||
|
||||
#########################################
|
||||
# Build client #
|
||||
|
@ -27,6 +26,7 @@ cov-build --dir "$COVDIR" --no-generate-build-id --force make fullimage
|
|||
# and we want the client-side of the common/ analysis
|
||||
cov-build --dir "$COVDIR" --c-coverage=gcov --no-network-coverage --no-generate-build-id --force make CC=$HOSTCC CXX=$HOSTCXX LD=$HOSTLD mfkey
|
||||
cov-build --dir "$COVDIR" --c-coverage=gcov --no-network-coverage --no-generate-build-id --force make CC=$HOSTCC CXX=$HOSTCXX LD=$HOSTLD nonce2key
|
||||
cov-build --dir "$COVDIR" --c-coverage=gcov --no-network-coverage --no-generate-build-id --force make CC=$HOSTCC CXX=$HOSTCXX LD=$HOSTLD mf_nonce_brute
|
||||
cov-build --dir "$COVDIR" --c-coverage=gcov --no-network-coverage --no-generate-build-id --force make CC=$HOSTCC CXX=$HOSTCXX LD=$HOSTLD client
|
||||
|
||||
#########################################
|
||||
|
|
|
@ -5,5 +5,4 @@ set -e
|
|||
|
||||
# cov-configure --list-configured-compilers text
|
||||
cov-configure --template --compiler arm-none-eabi-gcc --comptype gcc
|
||||
# cov can't read gcov from gcc > 7
|
||||
cov-configure --template --compiler $HOSTCC --comptype gcc
|
||||
|
|
|
@ -1,15 +1,21 @@
|
|||
|
||||
## Coverity Scan Config & Run
|
||||
Download the Coverity Scan Self-build and install it.
|
||||
Download the Coverity Scan Self-build from https://scan.coverity.com/download/ and untar it.
|
||||
|
||||
You will need to configure ARM-NON-EABI- Compiler for it to use:
|
||||
|
||||
Configure
|
||||
Configure
|
||||
|
||||
```sh
|
||||
cov-configure --comptype gcc --compiler /opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc
|
||||
cov-configure --template --compiler arm-none-eabi-gcc --comptype gcc
|
||||
```
|
||||
If it's in a unusual location:
|
||||
|
||||
```sh
|
||||
cov-configure --comptype gcc --compiler /opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc
|
||||
```
|
||||
|
||||
Run it (I'm running on Ubuntu)
|
||||
Run it
|
||||
|
||||
```sh
|
||||
cov-build --dir cov-int make all
|
||||
|
|
Loading…
Reference in a new issue