From 62ae217a27531d9767bcdda0e7ff6c4368ed857e Mon Sep 17 00:00:00 2001 From: steven-na Date: Wed, 29 Jul 2026 01:53:59 -0700 Subject: Scratch and temp arenas --- Justfile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Justfile') diff --git a/Justfile b/Justfile index 8343372..e1f0346 100644 --- a/Justfile +++ b/Justfile @@ -50,6 +50,14 @@ test-all: {{cc}} {{cflags}} {{test_dir}}/*.c {{src_dir}}/*.c -o {{build_dir}}/test -lcriterion {{lflags}} ./{{build_dir}}/test +coverage: + mkdir -p {{build_dir}}/cov-src {{build_dir}}/cov-tests + cd {{build_dir}}/cov-src && {{cc}} {{cflags}} --coverage -c ../../{{src_dir}}/*.c + cd {{build_dir}}/cov-tests && {{cc}} {{cflags}} --coverage -c ../../{{test_dir}}/*.c + {{cc}} {{cflags}} --coverage {{build_dir}}/cov-src/*.o {{build_dir}}/cov-tests/*.o -o {{build_dir}}/test-coverage -lcriterion {{lflags}} + ./{{build_dir}}/test-coverage + gcovr --root . --filter '{{src_dir}}/' {{build_dir}}/cov-src --html-details {{build_dir}}/coverage.html --print-summary + clean: rm -rf {{build_dir}} -- cgit v1.2.3