I have successfully created an autotools project where tests are compiled using a toolkit, so I can get a test report.
I can get the report by running lcov in the source directory after a successful "make check".
Now I am facing the problem that I want to automate this step. I would like to add this to the "make check" or make it a separate goal of "check-cover". Ideally, I would like to analyze the result and fail if coverage falls below a certain percentage. The problem is that I cannot figure out how to add a custom target at all.
The closest I found is to find this autotools configuration example, but I donโt see where in this project the goal of โmake lcovโ has been added. I can only see some configure flags in m4 / auxdevel.m4.
Any tips?
source share