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