forked from Isarhamster/chessx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlcov_zero.sh
More file actions
executable file
·22 lines (15 loc) · 840 Bytes
/
lcov_zero.sh
File metadata and controls
executable file
·22 lines (15 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
############################################################################################################
# You should edit the following 3 paths when necessary
############################################################################################################
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/Library/Apple/usr/bin
# Get the path to the current folder
SCRIPT_DIR=$PWD
echo "Zero coverage in $SCRIPT_DIR"
# SRC_DIR is the directory containing the .gcno files (%{buildDir} in Qt Creator)
SRC_DIR="$SCRIPT_DIR/obj_dbg"
# COV_DIR is the directory where the coverage results will be stored
COV_DIR="$SCRIPT_DIR/coverage"
############################################################################################################
# Reset our counts
lcov -d "${COV_DIR}" -z