Add feature for line coverage measurement 89/231989/1
authorJeongmo Yang <jm80.yang@samsung.com>
Mon, 27 Apr 2020 07:35:09 +0000 (16:35 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Mon, 27 Apr 2020 07:36:19 +0000 (16:36 +0900)
[Version] 0.1.199-1
[Profile] Common
[Issue Type] Line coverage

Change-Id: Icf08978bce1adfc385404cca1eaf9eaafff94752
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec

index 269857a..408e710 100644 (file)
@@ -1,7 +1,7 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
 Version:    0.10.199
-Release:    0
+Release:    1
 Group:      Multimedia/Libraries
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
@@ -56,6 +56,10 @@ Camera and recorder function supported library for development.
 
 
 %build
+%if 0%{?gcov:1}
+export CFLAGS+=" -fprofile-arcs -ftest-coverage"
+export LDFLAGS+=" -lgcov"
+%endif
 export CFLAGS+=" -D_LARGEFILE64_SOURCE -DGST_USE_UNSTABLE_API -DSYSCONFDIR=\\\"%{_sysconfdir}\\\" -DTZ_SYS_ETC=\\\"%{TZ_SYS_ETC}\\\""
 ./autogen.sh
 %configure \