Skip to content

Commit

Permalink
install/ts: run gcov from lib directory
Browse files Browse the repository at this point in the history
"gcov" results were not correctly produced anymore when run from outside
lib directory with -o option. So run "gcov" directly within lib
directory.
  • Loading branch information
xdelaruelle committed May 13, 2024
1 parent 6f1e17a commit 00c9593
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ task:
<< : *BUILD_INSTALL_TEST_TEMPLATE
coverage_script:
- for f in tcl/*.tcl; do script/nglfar2ccov $f; done
- gcov -o lib envmodules
- cd lib; gcov envmodules; cd ..
- curl -Os https://uploader.codecov.io/latest/macos/codecov
- chmod +x codecov
- arch -x86_64 ./codecov -t ${CODECOV_TOKEN}
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/linux_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
for f in tcl/*.tcl; do
script/nglfar2ccov $f
done
gcov -o lib envmodules
cd lib
gcov envmodules
- name: Uninstall Modules
run: |
make uninstall
Expand Down Expand Up @@ -103,7 +104,8 @@ jobs:
for f in tcl/*.tcl; do
script/nglfar2ccov $f
done
gcov -o lib envmodules
cd lib
gcov envmodules
- name: Uninstall Modules
run: |
make uninstall
Expand Down Expand Up @@ -162,7 +164,8 @@ jobs:
for f in tcl/*.tcl; do
script/nglfar2ccov $f
done
gcov -o lib envmodules
cd lib
gcov envmodules
- name: Uninstall Modules
run: |
make uninstall
Expand Down Expand Up @@ -219,7 +222,8 @@ jobs:
for f in tcl/*.tcl; do
script/nglfar2ccov $f
done
gcov -o lib envmodules
cd lib
gcov envmodules
- name: Uninstall Modules
run: |
make uninstall
Expand Down Expand Up @@ -280,7 +284,8 @@ jobs:
for f in tcl/*.tcl; do
script/nglfar2ccov $f
done
gcov -o lib envmodules
cd lib
gcov envmodules
- name: Uninstall Modules
run: |
make uninstall
Expand Down
1 change: 1 addition & 0 deletions .hunspell.en.dic
Original file line number Diff line number Diff line change
Expand Up @@ -1160,3 +1160,4 @@ Jérémy
Déchard
getgrouplist
getgroups
gcov

0 comments on commit 00c9593

Please sign in to comment.