forked from vmware/concord-bft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-codecoverage.sh
executable file
·24 lines (21 loc) · 1.35 KB
/
run-codecoverage.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env sh
################################################################################
# run-codecoverage #
# #
# This script is used to run prepare-code-coverage-artifact.py python file to #
# to generate code coverage report for apollo tests. #
# #
# Help: #
# If do not want to preserve raw profile data with the coverage report. #
# > python3 $dir_path$py_file $raw_file_path_arg #
# #
# If want to preserve raw profile data with the coverage report. #
# > python3 $dir_path$py_file $raw_file_path_arg $optional_arg #
# #
################################################################################
echo "Usage: run-codecoverage.sh"
dir_path="scripts"
py_file="/prepare-code-coverage-artifact.py"
apollo_build_path_arg="build/tests/apollo/"
optional_arg="--preserve-profiles"
python3 $dir_path$py_file $apollo_build_path_arg