gpu: nvgpu: unit: update gcov.sh to patch paths

To keep consistency between host and target runs, this patch
adds some post processing to HTML files to include a path from
the TOP folder to GCOV reports.

JIRA NVGPU-3510

Change-Id: I50ea5614fa665d257384a23acbf7b4e5b9d69925
Signed-off-by: Nicolas Benech <nbenech@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2274714
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Nicolas Benech
2020-01-06 23:03:36 -05:00
committed by Alex Waterman
parent cc7bffd8cd
commit dd37730672

View File

@@ -77,6 +77,9 @@ echo "Generating GCOV report..."
python -m gcovr -v -s -e '.+posix/.+' -e '.*userspace/.+' \ python -m gcovr -v -s -e '.+posix/.+' -e '.*userspace/.+' \
-r $NVGPU_SRC_ROOT --html-details --output report/index.html &> gcov.log -r $NVGPU_SRC_ROOT --html-details --output report/index.html &> gcov.log
#Patch the paths to match output from automative runs so that hashes are identical
sed -i 's/Value\">drivers\//Value\">kernel\/nvgpu\/drivers\//g' report/*.c.html
#Present the results #Present the results
if [ "$(uname -m)" = "aarch64" ]; then if [ "$(uname -m)" = "aarch64" ]; then
echo "Running on target, starting a webserver..." echo "Running on target, starting a webserver..."