aboutsummaryrefslogtreecommitdiff
path: root/util/coverage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/coverage.sh')
-rwxr-xr-xutil/coverage.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/util/coverage.sh b/util/coverage.sh
new file mode 100755
index 0000000..7fcb1fb
--- /dev/null
+++ b/util/coverage.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+rm -rf build
+cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=1
+cmake --build build
+pushd build
+ctest -T test
+ctest -T coverage
+popd