[lcov] Change base directory
authorgichan <gichan2.jang@samsung.com>
Thu, 22 Dec 2022 08:20:53 +0000 (17:20 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Fri, 23 Dec 2022 03:23:01 +0000 (12:23 +0900)
Because the file path for build has been changed to relative path, change base directory for lcov.
This patch fixes failure of coverage generation.

Signed-off-by: gichan <gichan2.jang@samsung.com>
packaging/nnstreamer.spec

index db3744a..5dcad51 100644 (file)
@@ -962,7 +962,7 @@ find . -name "CMakeCCompilerId*.gcda" -delete
 find . -name "CMakeCXXCompilerId*.gcda" -delete
 #find . -path "/build/*.j
 # Generate report
-lcov -t 'NNStreamer Unit Test Coverage' -o unittest.info -c -d . -b $(pwd) --no-external
+lcov -t 'NNStreamer Unit Test Coverage' -o unittest.info -c -d . -b build --no-external
 # Exclude generated files (e.g., Orc, Protobuf) and device-dependent filters.
 lcov -r unittest.info "*/*-orc.*" "*/tests/*" "*/tools/*" "*/meson*/*" "*/*@sha/*" "*/*_openvino*" "*/*_edgetpu*" "*/*_movidius_ncsdk2*" "*/*.so.p/*" -o unittest-filtered.info
 # Visualize the report