aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-12-15 14:45:31 +0100
committerKarel Kočí <cynerd@email.cz>2022-12-15 14:45:31 +0100
commit2959b9f9c1006a42dba4ed6316275c9538f87a62 (patch)
tree3797c11240f945865b7a5422a1969b4af2bad18e
parent78ad772293d320cec8e00b256bec011c577b2553 (diff)
downloadshellrc-2959b9f9c1006a42dba4ed6316275c9538f87a62.tar.gz
shellrc-2959b9f9c1006a42dba4ed6316275c9538f87a62.tar.bz2
shellrc-2959b9f9c1006a42dba4ed6316275c9538f87a62.zip
shellrc.d/dev: add mcoverage and move coverage enable from mtest there
-rw-r--r--shellrc.d/dev7
1 files changed, 7 insertions, 0 deletions
diff --git a/shellrc.d/dev b/shellrc.d/dev
index 9af8088..1c54322 100644
--- a/shellrc.d/dev
+++ b/shellrc.d/dev
@@ -28,8 +28,15 @@ mbuild() {
mtest() {
_meson_setup
+ meson test -C build "$@"
+}
+
+mcoverage() {
+ _meson_setup
meson configure build -Db_coverage=true
meson test -C build "$@"
+ ninja -C build coverage-html
+ xdg-open build/meson-logs/coveragereport/index.html
}
mdist() {