NOAA-EMC / NCEPLIBS-ncio

This is a NOAA library used by NCEP GSI system to read the GFS forecast files for use in data assimilation.
Other
1 stars 6 forks source link

Empty test coverage results #78

Closed AlexanderRichert-NOAA closed 1 year ago

AlexanderRichert-NOAA commented 1 year ago

The current test coverage output is empty even though the CI doesn't fail anymore. I can resolve the issue by removing the -fprofile-abs-path from CMAKE_Fortran_FLAGS and copying the source files into build/src/CMakeFiles/ncio.dir/, but I still don't know what the issue is.

AlexanderRichert-NOAA commented 1 year ago

@edwardhartnett for what it's worth, I just checked the rest of NCEPLIBS and none of them have this problem, i.e., their test coverage outputs all appear to be correctly populated. I suspect it's some combination of how the source files get built (i.e., "included" as opposed to compiled directly) and how they're handled by cmake.

edwardhartnett commented 1 year ago

Probably you are right. I hate the way the code is organized in this repo. It's nutty!

Can you submit a PR with your hack?