summaryrefslogtreecommitdiff
path: root/tools/coverage.sh
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-10-17 19:42:29 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-10-17 19:42:29 -0500
commit8249b28bea29e8ce17eac12776a60ec3f9e47176 (patch)
tree98318d7564b5f618cfb59e23cc6b918fcab88ee8 /tools/coverage.sh
parentb32e83ece42cec5aa9dee370bcdf349d23dbc8ba (diff)
Rename InvalidInput to ArgumentInvalid.
Diffstat (limited to 'tools/coverage.sh')
-rwxr-xr-xtools/coverage.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/coverage.sh b/tools/coverage.sh
index 5caa6f0..95eef03 100755
--- a/tools/coverage.sh
+++ b/tools/coverage.sh
@@ -1,5 +1,10 @@
#!/bin/sh
+PROJ_ROOT=$(git rev-parse --show-toplevel)
+cd $PROJ_ROOT
+
+HTML_DIR=build/coverage/html
+
ctest --test-dir build/test -j8
-mkdir -p build/html
-gcovr --exclude-throw-branches --exclude build/_deps/ --exclude test -r source . --html-details build/html/gcovr_report.html
+mkdir -p ${HTML_DIR}
+gcovr --exclude-throw-branches --exclude build/_deps/ --exclude test -r . --html-details ${HTML_DIR}/gcovr_report.html