Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
ghx-label-1
Description
If the user issues "buildall.sh -release_and_debug -codecoverage", the script will do a releae build, then a debug build, without generating any code coverage data:
https://github.com/apache/impala/blob/beb8019f5300bb163424e7fdfec50b8e4b796e26/buildall.sh#L607
We cannot really generate code coverage information for both release and debug builds because the second build overwrites the cmake directories, hence it overwrites the .gcno files as well.
Therefore we should raise an error when the use specifies both -release_and_debug and -codecoverage. Another workaround could be to copy the .gcno files to a directory after the builds.