mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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:
committed by
Alex Waterman
parent
cc7bffd8cd
commit
dd37730672
@@ -77,6 +77,9 @@ echo "Generating GCOV report..."
|
||||
python -m gcovr -v -s -e '.+posix/.+' -e '.*userspace/.+' \
|
||||
-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
|
||||
if [ "$(uname -m)" = "aarch64" ]; then
|
||||
echo "Running on target, starting a webserver..."
|
||||
|
||||
Reference in New Issue
Block a user