[Test/Unit-test-coverage] Add Tizen/API into unittest coverage
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 22 Mar 2019 05:54:38 +0000 (14:54 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 27 Mar 2019 06:52:38 +0000 (15:52 +0900)
Count test-coverage of Tizen/API.

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

index 71f1adc..4879971 100644 (file)
@@ -200,7 +200,14 @@ DESTDIR=%{buildroot} ninja -C build %{?_smp_mflags} install
 # Intentionally excluded directories are:
 #
 # tests: We are not going to show testcoverage of the test code itself or example applications
-    $(pwd)/tests/unittestcoverage.py module $(pwd)/gst $(pwd)/ext
+
+%if %{with tizen}
+%define testtarget $(pwd)/tizen-api
+%else
+%define testtarget
+%endif
+
+    $(pwd)/tests/unittestcoverage.py module $(pwd)/gst $(pwd)/ext %testtarget
 
 # Get commit info
     VCS=`cat ${RPM_SOURCE_DIR}/nnstreamer.spec | grep "^VCS:" | sed "s|VCS:\\W*\\(.*\\)|\\1|"`