aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2020-06-27 10:23:57 +0200
committerThomas Schmucker <ts@its1.de>2020-06-27 10:23:57 +0200
commita609a0d5e82a15ee43f71f0a19218c59e9556575 (patch)
tree10fd8284055e8b460b18b6cf1d78ea08284b0abd /makefile
parent57b81eacf20423c70a19d325bffee861d8b3a882 (diff)
downloadlibcsv-a609a0d5e82a15ee43f71f0a19218c59e9556575.tar.gz
libcsv-a609a0d5e82a15ee43f71f0a19218c59e9556575.tar.bz2
libcsv-a609a0d5e82a15ee43f71f0a19218c59e9556575.zip
aktiviere Code-Coverage-Test
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/makefile b/makefile
index 38134b1..acf3564 100644
--- a/makefile
+++ b/makefile
@@ -2,9 +2,13 @@ include config.mk
2 2
3all: csv-test csv-perf seq-read 3all: csv-test csv-perf seq-read
4 4
5csv-test: csv-test.c csv.o csv.h 5csv-test: csv-test.c csv.c csv.h
6 $(CC) $(CFLAGS) -o $@ csv-test.c csv.o 6 $(CC) $(CFLAGS) -fprofile-instr-generate -fcoverage-mapping -DNDEBUG -o $@ csv-test.c csv.c
7 ./csv-test 7 ./$@
8
9coverage: csv-test
10 llvm-profdata merge -sparse default.profraw -o csv-test.profdata
11 llvm-cov show ./csv-test -instr-profile=csv-test.profdata
8 12
9csv-perf: csv-perf.c csv.o csv.h 13csv-perf: csv-perf.c csv.o csv.h
10 $(CC) $(CFLAGS) -o $@ csv-perf.c csv.o 14 $(CC) $(CFLAGS) -o $@ csv-perf.c csv.o
@@ -18,4 +22,4 @@ csv.o: csv.c csv.h
18clean: 22clean:
19 rm csv-test csv-perf seq-read csv.o 23 rm csv-test csv-perf seq-read csv.o
20 24
21.PHONY: all clean 25.PHONY: all clean coverage