Add line coverage comments 22/207322/1
authorsooyeon.kim <sooyeon.kim@samsung.com>
Mon, 3 Jun 2019 07:24:16 +0000 (16:24 +0900)
committersooyeon.kim <sooyeon.kim@samsung.com>
Mon, 3 Jun 2019 07:24:16 +0000 (16:24 +0900)
Change-Id: I7a5310f6f1588b89ece3e4fa0727192aa1c27252
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
client/CMakeLists.txt
client/vc.c
packaging/voice-control.spec

index 10ce754..29a1049 100644 (file)
@@ -56,6 +56,9 @@ FOREACH(flag ${pkgs_CFLAGS})
 ENDFOREACH(flag)
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
 SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+## for LCOV
+#SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -fprofile-arcs -ftest-coverage")
+#SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -fprofile-arcs -ftest-coverage")
 
 ## voice control library ##
 ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
index b75d098..8ee5cce 100644 (file)
@@ -2863,7 +2863,6 @@ int vc_auth_cancel(void)
 
        return ret;
 }
-//LCOV_EXCL_STOP
 
 static void __start_tts_streaming_thread(void* data, Ecore_Thread* thread)
 {
@@ -3322,3 +3321,4 @@ int vc_tts_unset_utterance_status_cb(void)
 
        return 0;
 }
+//LCOV_EXCL_STOP
index 1115948..47c96b3 100644 (file)
@@ -95,6 +95,11 @@ cp %{SOURCE1001} %{SOURCE1002} .
 
 
 %build
+## for LCOV
+#export CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
+#export CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
+#export LDFLAGS="$LDFLAGS -lgcov"
+
 %if "%{tizen_profile_name}" == "tv"
 export CFLAGS="$CFLAGS -DTV_PRODUCT"
 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DLIBDIR=%{_libdir} -DBINDIR=%{_bindir} -DINCLUDEDIR=%{_includedir} \