X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Makefile.am;h=499b8622626e371f55d30fa5e2897dde0dc0257e;hb=refs%2Fchanges%2F63%2F3663%2F8;hp=1e75af93ec6ded07bf7d1f66ff7d825ff250eef9;hpb=91a224f190867869d2d0b14a5f96e44a0593e682;p=ric-plt%2Fsdl.git diff --git a/Makefile.am b/Makefile.am index 1e75af9..499b862 100644 --- a/Makefile.am +++ b/Makefile.am @@ -387,8 +387,25 @@ TESTS = \ test: testrunner ./run-tests.sh +if ENABLE_GCOV +AM_CXXFLAGS= -O0 --coverage +AM_LDFLAGS= --coverage + +test_gcov: test + @for p in src/.libs/*.o src/redis/.libs/*.o; do \ + gcov -abcfru $$p 1>/dev/null; \ + done + mkdir -p @GCOV_REPORT_DIR@ + mv *.gcov @GCOV_REPORT_DIR@ + ls -la @GCOV_REPORT_DIR@ +endif + clean-local: rm -f libsdl.pc +if ENABLE_GCOV + rm -rf @GCOV_REPORT_DIR@ + @find . -name '*.gcno' -o -name '*.gcda'| xargs -r rm +endif @DX_RULES@