maur pwd
[RRG-proxmark3.git] / covbuild.sh
blobb96e7059fc86f70c1b17c685a5395898f64ee21c
1 #!/usr/bin/env bash
3 set -e
4 . .coverity.conf || exit 1
6 pre_build_hook
8 mkdir -p "$COVDIR"
9 make clean
10 cov-build --dir "$COVDIR" --initialize
12 #########################################
13 # Build Host prerequisites #
14 #########################################
15 cov-build --dir "$COVDIR" --c-coverage=gcov --no-network-coverage --no-generate-build-id --force make CC=$HOSTCC CXX=$HOSTCXX LD=$HOSTLD fpga_compress
17 #########################################
18 # Build ARM, no test coverage #
19 #########################################
20 cov-build --dir "$COVDIR" --no-generate-build-id --force make recovery
22 #########################################
23 # Build client #
24 #########################################
25 # make sure to do client after ARM because Coverity retains one build info per file
26 # and we want the client-side of the common/ analysis
27 cov-build --dir "$COVDIR" --c-coverage=gcov --no-network-coverage --no-generate-build-id --force make CC=$HOSTCC CXX=$HOSTCXX LD=$HOSTLD mfkey
28 cov-build --dir "$COVDIR" --c-coverage=gcov --no-network-coverage --no-generate-build-id --force make CC=$HOSTCC CXX=$HOSTCXX LD=$HOSTLD nonce2key
29 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
30 cov-build --dir "$COVDIR" --c-coverage=gcov --no-network-coverage --no-generate-build-id --force make CC=$HOSTCC CXX=$HOSTCXX LD=$HOSTLD client
32 #########################################
33 # Run tests #
34 #########################################
35 cov-build --dir "$COVDIR" --c-coverage=gcov --no-network-coverage --test-capture tools/pm3_tests.sh --long
36 #cov-manage-emit --dir "$COVDIR" list-coverage-known
38 #########################################
39 # Import Git annotations (~ git blame) #
40 #########################################
41 cov-import-scm --dir "$COVDIR" --scm git --filename-regex "$PWD" --log ""$COVDIR"/cov-import-scm-log.txt"
43 post_build_hook