aboutsummaryrefslogtreecommitdiffstats
path: root/config-coverage-gcc.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-21 23:00:24 +0100
committerMattias Andrée <maandree@kth.se>2022-02-21 23:00:24 +0100
commitd127dd5cab51a869d6f6bb6c2a0860c458d3fecd (patch)
tree87d05afe908afa23afb3ede93ae2c1ec10672194 /config-coverage-gcc.mk
parentAdd tests (diff)
downloadblakesum-d127dd5cab51a869d6f6bb6c2a0860c458d3fecd.tar.gz
blakesum-d127dd5cab51a869d6f6bb6c2a0860c458d3fecd.tar.bz2
blakesum-d127dd5cab51a869d6f6bb6c2a0860c458d3fecd.tar.xz
Add coverage test
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'config-coverage-gcc.mk')
-rw-r--r--config-coverage-gcc.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/config-coverage-gcc.mk b/config-coverage-gcc.mk
new file mode 100644
index 0000000..a505279
--- /dev/null
+++ b/config-coverage-gcc.mk
@@ -0,0 +1,11 @@
+CONFIGFILE_PROPER = config.mk
+include $(CONFIGFILE_PROPER)
+
+CC = $(CC_PREFIX)gcc -std=c99
+GCOV = gcov
+
+CFLAGS = -g -O0 -pedantic -fprofile-arcs -ftest-coverage
+LDFLAGS = -lblake -lgcov -fprofile-arcs
+
+coverage: check
+ $(GCOV) -pr $(SRC) 2>&1