Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove lcov from PROCESS #3422

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .github/workflows/process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ jobs:
path: |
process/**/*.so
process/io/python_fortran_dicts.json
- name: Archive coverage data
uses: actions/upload-artifact@v3
with:
name: coverage-artifacts
path: |
build/CMakeFiles/process.dir/source/fortran/*.gcno
lcov_results
- name: Archive ford artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
21 changes: 0 additions & 21 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,24 +181,3 @@ else()
endif()

ADD_DEPENDENCIES(install_process ${PIP_NAME} f2py ${FORD_NAME} ${GFORTLIB_NAME} ${DICTS_NAME} coverage_cleanup)

if(EXISTS ${CMAKE_SOURCE_DIR}/lcov_results)
execute_process(COMMAND echo "-- Delete existing lcov_coverage directory...")
execute_process(COMMAND cmake -E remove_directory ${CMAKE_SOURCE_DIR}/lcov_results)
execute_process(COMMAND mkdir ${CMAKE_SOURCE_DIR}/lcov_results)
elseif(NOT EXISTS ${CMAKE_SOURCE_DIR}/lcov_results)
execute_process(COMMAND echo "-- Create lcov_coverage directory...")
execute_process(COMMAND mkdir ${CMAKE_SOURCE_DIR}/lcov_results)
endif()

# Custom target to run the regression tests and generate coverage report
ADD_CUSTOM_TARGET(regression
COMMAND pytest -v tests/regression/ -s | tee tests/regression/pytest.log
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)

ADD_CUSTOM_TARGET(coverage
COMMAND lcov --gcov-tool gcov --capture --directory build/CMakeFiles/process.dir/source/fortran/ --output-file lcov_results/coverage.info
COMMAND genhtml --output-directory lcov_results/html lcov_results/coverage.info
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Open the terminal and install `cmake`, `gfortran`, `pip`, etc.:

```bash
sudo apt update
sudo apt install -y cmake gfortran python3-pip lcov poppler-utils python3-venv
sudo apt install -y cmake gfortran python3-pip poppler-utils python3-venv
```

!!! Note "CMake"
Expand Down
30 changes: 0 additions & 30 deletions documentation/proc-pages/usage/coverage.md

This file was deleted.

Loading