On Thu, 26 Nov 2020, Satish Kumar via clamav-users wrote:
Dear All,
I would like to build the ClamAV software from source code on an ubuntu machine
andÃÂ measure theÃÂ code coverage of the ClamAV project with the helpÃÂ of
existing unit test cases in the ClamAV project
ÃÂ for that, theÃÂ belowÃÂ steps that IÃÂ followed
1.compiled the ClamAV source code locallyÃÂ and installed successfully on the
local ubuntu machine
ÃÂ a)autogen.shÃÂ ÃÂ b)./configureÃÂ --enable-checkÃÂ
--enable-coveragec)sudo make
install
2)After installation, IÃÂ switched from the ClamAV source folder toÃÂ
"unit_tests"
andÃÂ executed the make command but failed with the below errorÃÂ makemake:
Nothing
to be done for 'all'.
I want to run allÃÂ unit-test cases covered (at one go)ÃÂ under the
unit_test
folderÃÂ and measure the ClamAVÃÂ code coverageÃÂ metrics( in terms ofÃÂ
line/statement coverage, function coverage, branch coverage) byÃÂ exiting the
unit-test case suite(s) of ClamAV
I have gone throughÃÂ ClamAV documentation a little bit but could not find a
clue
for it. Could any one of you please help me onÃÂ this and any help
/suggestions
would be appreciatedÃÂ
# tail -17 Makefile
.PRECIOUS: Makefile
lcov:
($(MAKE); cd unit_tests; $(MAKE) lcov)
quick-check:
($(MAKE); cd unit_tests; $(MAKE) quick-check)
fuzz-all:
($(MAKE); cd fuzz; $(MAKE) all)
fuzz-check:
($(MAKE); cd fuzz; $(MAKE) check)
dist-hook:
rm -rf $(distdir)/win32/clamav-for-windows $(distdir)/win32/build
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
... so I would guess
make lcov
or
make lcov quick-check
--
Andrew C. Aitchison Kendal, UK
[email protected]
_______________________________________________
clamav-users mailing list
[email protected]
https://lists.clamav.net/mailman/listinfo/clamav-users
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml