Skip to content

Commit

Permalink
Fix run_gcov.sh to use proper _build/_coverage dirs (#1363)
Browse files Browse the repository at this point in the history
Signed-off-by: Cary Phillips <cary@ilm.com>
  • Loading branch information
cary-ilm committed Mar 18, 2023
1 parent 6c1741b commit 8867c76
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions share/ci/scripts/linux/run_gcov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ set -ex
if [ $# -gt 0 ]
then
build=$1 # use explicity-provided build directory
coverage="$build/_coverage"
else
build=`pwd`/'_build' # from with CI, use the _build subdirectory
build='../_build' # from with CI, use the _build subdirectory
coverage="_coverage"
fi

coverage="$build/_coverage"

mkdir -p $coverage
cd $coverage

Expand All @@ -28,9 +28,9 @@ for gcno in $(find $build -name "*.gcno" -type f); do
# source_base = $build/src/bin/exrheader/CMakeFiles/exrheader.dir/main
# dependenty_file = $build/src/bin/exrheader/CMakeFiles/exrheader.dir/main.o.d

object_directory=$(dirname "$gcno")
source_base=$(basename "$gcno" ".gcno")
dependency_file=$object_directory/$source_base.o.d
object_directory=$(dirname "$gcno")
source_base=$(basename "$gcno" ".gcno")
dependency_file=$object_directory/$source_base.o.d

if [ -f "$dependency_file" ]; then

Expand Down

0 comments on commit 8867c76

Please sign in to comment.