summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-08-22 15:27:17 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2025-08-22 15:27:17 +0300
commitb0d619e2c9595f4ec05463e87be9d0d3423c0a70 (patch)
treedfcda5da356b660fadb8b133772c926c08908cbb /Makefile
parent7774ae2f8c2dca9ab2d93082856f031e78a1b5f0 (diff)
downloadconts-b0d619e2c9595f4ec05463e87be9d0d3423c0a70.tar.gz
conts-b0d619e2c9595f4ec05463e87be9d0d3423c0a70.zip
use covsrv for coverage testing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index f7934d8..dae78e5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,20 +1,28 @@
CFLAGS = -g -Wall -Wextra
check: check-vec check-sptree check-map
+# see scripts/coverage for coverage testing
+
check-vec:
mkdir -p build
- $(CC) $(CFLAGS) -Iinclude tests/vec.c -o build/vec
- valgrind -q --error-exitcode=1 ./build/vec
+ $(CC) $(CFLAGS) $(COVERAGEFLAGS) \
+ -Iinclude -Ideps/covsrv/include \
+ deps/covsrv/src/client.c tests/vec.c -o build/vec
+ ./scripts/run-test ./build/vec
check-sptree:
mkdir -p build
- $(CC) $(CFLAGS) -Iinclude tests/sptree.c -o build/sptree
- valgrind -q --error-exitcode=1 ./build/sptree
+ $(CC) $(CFLAGS) $(COVERAGEFLAGS) \
+ -Iinclude -Ideps/covsrv/include \
+ deps/covsrv/src/client.c tests/sptree.c -o build/sptree
+ ./scripts/run-test ./build/sptree
check-map:
mkdir -p build
- $(CC) $(CFLAGS) -Iinclude tests/map.c -o build/map
- valgrind -q --error-exitcode=1 ./build/map
+ $(CC) $(CFLAGS) $(COVERAGEFLAGS) \
+ -Iinclude -Ideps/covsrv/include \
+ deps/covsrv/src/client.c tests/map.c -o build/map
+ ./scripts/run-test ./build/map
bench: bench-vec bench-sptree bench-map