No latest gcov #1973

This commit is contained in:
rusefillc 2020-11-19 21:32:14 -05:00
parent e69d103461
commit 827115f0c2
1 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@
#
if [ ! "$1" ] || [ ! "$2" ] || [ ! "$3" ]; then
echo "No Secrets"
echo "No FTP Secrets, not even generating coverage"
exit 0
fi
@ -26,16 +26,16 @@ xargs -L 1 -I {} cp {} . < source_files.txt
cp ../build/obj/* .
echo -e "\nGenerating coverage"
echo -e "\nGenerating rusEFI unit test coverage"
gcov *.c* > gcov.log 2>gcov.err
echo -e "\nCollecting coverage"
echo -e "\nCollecting rusEFI unit test coverage"
lcov --capture --directory . --output-file coverage.info
echo -e "\nGenerating HTML"
echo -e "\nGenerating rusEFI unit test HTML"
genhtml coverage.info --output-directory gcov
echo -e "\nGenerating rusEFI unit test HTML"
if [ -n "$RUSEFI_FTP_SERVER" ]; then
echo -e "\nUploading HTML"
ncftpput -m -R -v -u "$1" -p "$2" "$3" /unit_tests_coverage gcov/*
fi