aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile8
2 files changed, 9 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 50343e4..c1f629d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@ deps.mk
tests.mk
docs/output
build
+coverage
libejit.a
test-*
examples/matrix_mult
diff --git a/Makefile b/Makefile
index 548e5b8..358cf28 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,14 @@ check: all
@./scripts/gen-tests $$(echo tests/*.c)
$(MAKE) -f tests/makefile check
+.PHONY: coverage
+coverage:
+ $(MAKE) clean
+ $(MAKE) CFLAGS='--coverage' check
+ mkdir coverage
+ lcov --capture --directory . --out coverage/ejit.info
+ genhtml coverage/ejit.info --out coverage
+
# supported by jit
.PHONY: check_linux_amd64
check_linux_amd64: