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

Fix coverage analysis for .c files #306

Merged
merged 2 commits into from
Mar 16, 2023

Conversation

cary-ilm
Copy link
Member

Looks like the coverage analysis has been completely missing .c files.

  • Set CMAKE_C_FLAGS/CMAKE_C_OUTPUT_EXTENSION_REPLACE just like CXX

  • Fix run_gcov.sh to deduce the source file by examining the .o.d file rather than simply replacing .gcno with .cpp, which misses .c files

  • Add ImathHalfPerfTest to the test suite

Looks like the coverage analysis has been completely missing .c files.

- Set CMAKE_C_FLAGS/CMAKE_C_OUTPUT_EXTENSION_REPLACE just like CXX

- Fix run_gcov.sh to deduce the source file by examining the .o.d file
  rather than simply replacing .gcno with .cpp, which misses .c files

- Add ImathHalfPerfTest to the test suite

Signed-off-by: Cary Phillips <[email protected]>
Signed-off-by: Cary Phillips <[email protected]>
@cary-ilm cary-ilm merged commit b05b3f9 into AcademySoftwareFoundation:main Mar 16, 2023
cary-ilm added a commit to cary-ilm/Imath that referenced this pull request May 19, 2023
* Fix coverage analysis for .c files

Looks like the coverage analysis has been completely missing .c files.

- Set CMAKE_C_FLAGS/CMAKE_C_OUTPUT_EXTENSION_REPLACE just like CXX

- Fix run_gcov.sh to deduce the source file by examining the .o.d file
  rather than simply replacing .gcno with .cpp, which misses .c files

- Add ImathHalfPerfTest to the test suite

Signed-off-by: Cary Phillips <[email protected]>

* confirm dependency file exists

Signed-off-by: Cary Phillips <[email protected]>

---------

Signed-off-by: Cary Phillips <[email protected]>
cary-ilm added a commit that referenced this pull request May 21, 2023
* Fix coverage analysis for .c files

Looks like the coverage analysis has been completely missing .c files.

- Set CMAKE_C_FLAGS/CMAKE_C_OUTPUT_EXTENSION_REPLACE just like CXX

- Fix run_gcov.sh to deduce the source file by examining the .o.d file
  rather than simply replacing .gcno with .cpp, which misses .c files

- Add ImathHalfPerfTest to the test suite

Signed-off-by: Cary Phillips <[email protected]>

* confirm dependency file exists

Signed-off-by: Cary Phillips <[email protected]>

---------

Signed-off-by: Cary Phillips <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants