From e0a8b3d60a18a39d109f7f70b8068f41a672c825 Mon Sep 17 00:00:00 2001 From: Robin Malley Date: Sun, 12 Sep 2021 17:37:12 +0000 Subject: [PATCH] Add code coverage Add another target in the makefile to run code coverage. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 270b8a5..6d3078c 100644 --- a/Makefile +++ b/Makefile @@ -129,3 +129,9 @@ smr.so : $(src_files) conf/smr.conf conf/build.conf test : $(built) $(Q)$(CD) kore_chroot && busted -v --exclude-tags slow + +cov : $(built) + $(Q)$(RM) kore_chroot/luacov.stats.out + $(Q)$(CD) kore_chroot && busted -v -c --exclude-tags slow + $(Q)$(CD) kore_chroot && luacov $(built) + $(Q)$($ECHO) "open kore_chroot/luacov.report.out to view coverage results."