diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-19 20:03:46 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-19 20:03:46 +0200 |
commit | 6b1b5443fb8f07c52d1c2df2843592f79742156c (patch) | |
tree | 953c2a1ef5ed8a2849d62386413dea5ad525db0b /config-coverage-gcc.mk | |
parent | Improve README (diff) | |
download | libparsepcf-6b1b5443fb8f07c52d1c2df2843592f79742156c.tar.gz libparsepcf-6b1b5443fb8f07c52d1c2df2843592f79742156c.tar.bz2 libparsepcf-6b1b5443fb8f07c52d1c2df2843592f79742156c.tar.xz |
Add coverage test (requires `make check` which has not been implemented yet)
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'config-coverage-gcc.mk')
-rw-r--r-- | config-coverage-gcc.mk | 11 |
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..18de147 --- /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 = -lgcov -fprofile-arcs + +coverage: check + $(GCOV) -pr $(SRC) 2>&1 |