Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:c1ead5d7187bc6c6aa12
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#!/bin/sh
 
if [ "x$1" = "x" ] || [ "x$2" = "x" ]; then
echo "Usage: $0 <source directory> <output xml>"
exit 1
fi
 
if test ! -d "$1"; then
echo "Source directory does not exist"
exit 1
fi
 
SOURCE_DIR="$1"
OUTPUT_XML="$2"
 
CURRENT_DIR=`pwd`
cd "$SOURCE_DIR"
 
for i in zfl_*.c; do
gcov --branch-probabilities --no-output --object-directory ".libs" "$i"
done
 
cd "$CURRENT_DIR"
 
# from https://software.sandia.gov/trac/fast/wiki/gcovr
gcovr --xml --output="$OUTPUT_XML" -e import/cJSON/cJSON.c -r "$SOURCE_DIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.