[CI/UnittestCoverage] Exclude tests
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 26 Jun 2018 08:16:38 +0000 (17:16 +0900)
committer함명주/동작제어Lab(SR)/Principal Engineer/삼성전자 <myungjoo.ham@samsung.com>
Wed, 27 Jun 2018 05:08:07 +0000 (14:08 +0900)
Do not check unittest coverage of tests/*
Limit the coverage target to gst, nnstreamer_example, include, common.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/nnstreamer.spec

index 15ee05c..398dd75 100644 (file)
@@ -86,7 +86,19 @@ export SKIPGEN=YES
 popd
 
 %if 0%{?testcoverage}
-    unittestcoverage.py module $(pwd)
+##
+# The included directories are:
+#
+# gst: the nnstreamer elements
+# nnstreamer_example: custom plugin examples
+# common: common libraries for gst (elements)
+# include: common library headers and headers for external code (packaged as "devel")
+#
+# Intentionally excluded directories are:
+#
+# tests: We are not going to show testcoverage of the test code itself.
+
+    unittestcoverage.py module $(pwd)/gst $(pwd)/nnstreamer_example $(pwd)/common $(pwd)/include
 
 # Get commit info
     VCS=`cat ${RPM_SOURCE_DIR}/nnstreamer.spec | grep "^VCS:" | sed "s|VCS:\\W*\\(.*\\)|\\1|"`