[Coverage] Exclude generated files by flatbuf
authorgichan-jang <gichan2.jang@samsung.com>
Fri, 19 Jun 2020 08:01:00 +0000 (17:01 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 22 Jun 2020 00:15:04 +0000 (09:15 +0900)
Exclude generated files by flatbuf from coverage report

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

index 84fdacd..74f7893 100644 (file)
@@ -545,7 +545,7 @@ find . -name "CMakeCXXCompilerId*.gcda" -delete
 # Generate report
 lcov -t 'NNStreamer Unit Test Coverage' -o unittest.info -c -d . -b $(pwd) --no-external
 # Exclude generated files (Orc)
-lcov -r unittest.info "*/*-orc.*" "*/tests/*" "*/meson*/*" -o unittest-filtered.info
+lcov -r unittest.info "*/*-orc.*" "*/tests/*" "*/meson*/*" "*/*@sha/*" -o unittest-filtered.info
 # Visualize the report
 genhtml -o result unittest-filtered.info -t "nnstreamer %{version}-%{release} ${VCS}" --ignore-errors source -p ${RPM_BUILD_DIR}