From 00c959309ab698ce0c1914ad1f807bdabca43b4e Mon Sep 17 00:00:00 2001 From: Xavier Delaruelle Date: Mon, 13 May 2024 07:05:29 +0200 Subject: [PATCH] install/ts: run gcov from lib directory "gcov" results were not correctly produced anymore when run from outside lib directory with -o option. So run "gcov" directly within lib directory. --- .cirrus.yml | 2 +- .github/workflows/linux_tests.yaml | 15 ++++++++++----- .hunspell.en.dic | 1 + 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 3291a25b..d73e2a1d 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -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} diff --git a/.github/workflows/linux_tests.yaml b/.github/workflows/linux_tests.yaml index a1e37bda..89075bbb 100644 --- a/.github/workflows/linux_tests.yaml +++ b/.github/workflows/linux_tests.yaml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/.hunspell.en.dic b/.hunspell.en.dic index 7fbdd2d3..74403b9a 100644 --- a/.hunspell.en.dic +++ b/.hunspell.en.dic @@ -1160,3 +1160,4 @@ Jérémy Déchard getgrouplist getgroups +gcov