From 42c36d98d8fe9ae9573af31d2b4a83bf196437d4 Mon Sep 17 00:00:00 2001 From: Fernando da Silva Sousa Date: Mon, 4 Dec 2023 22:05:49 -0300 Subject: [PATCH] fix base directory issue --- coverage.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/coverage.sh b/coverage.sh index 9906edd..5159f01 100755 --- a/coverage.sh +++ b/coverage.sh @@ -6,12 +6,11 @@ meson test -C build cp /usr/share/vala-0.56/vapi/glib-2.0.vapi build/unit.p -cd build/unit.p -find ./ -type f -name "*.c" -exec cp {} . \; +find ./build/unit.p -type f -name "*.c" -exec cp {} build/unit.p \; gcovr --version -gcovr -r $ROOT --txt --jacoco jacoco.xml -o $ROOT/build/meson-logs/ --gcov-ignore-errors=all +gcovr -r $ROOT --txt --jacoco -o $ROOT/build/meson-logs/ --gcov-ignore-errors=all cat $ROOT/build/meson-logs/coverage.txt rm $ROOT/build/meson-logs/coverage.txt