Skip to content

Commit

Permalink
More coverage stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Oct 15, 2024
1 parent 8ca4c1a commit f2e4b1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ jobs:

- name: Collect Coverage Data
run: |
lcov --directory . --ignore-errors gcov --capture --output-file coverage.info
lcov --version
llvm-cov gcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info '/usr/*' "${HOME}"'/.cache/*' '/Applications/Xcode*' '*build*' '*test*' --output-file coverage.info
- name: Report Coverage Data
Expand Down
6 changes: 3 additions & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ target_compile_definitions(test_chowdsp_fft_cpp PRIVATE _USE_MATH_DEFINES=1)

if(CHOWDSP_FFT_COVERAGE)
message(STATUS "chowdsp_fft -- Appending code coverage compiler flags: -g --coverage")
target_compile_options(chowdsp_fft_avx PUBLIC -g --coverage)
target_compile_options(chowdsp_fft PUBLIC -g --coverage)
target_compile_options(test_chowdsp_fft_cpp PUBLIC -g --coverage)
target_compile_options(chowdsp_fft_avx PUBLIC -g --coverage -fprofile-arcs -ftest-coverage)
target_compile_options(chowdsp_fft PUBLIC -g --coverage -fprofile-arcs -ftest-coverage)
target_compile_options(test_chowdsp_fft_cpp PUBLIC -g --coverage -fprofile-arcs -ftest-coverage)
target_link_options(test_chowdsp_fft_cpp PUBLIC --coverage)
endif()

Expand Down

0 comments on commit f2e4b1d

Please sign in to comment.