Fix line coverage scope and test option 70/278670/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 25 Jul 2022 02:47:25 +0000 (11:47 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 25 Jul 2022 02:47:25 +0000 (11:47 +0900)
This patch reduces the scope for checking line coverage. The line
coverage is for checking client API, so other files in this repo is not
target of the line coverage test.

Change-Id: I677a34eb9a682a7cfd0c3d7e061fda1b7554cf17
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
packaging/voice-control.spec

index 80a4e617254bf0961fa1197d66ca270ffa79f2e4..cae96847a8859efc068a6a153ed9749d358759a7 100644 (file)
@@ -143,6 +143,20 @@ mv -f org.tizen.voice.vcserver.tv.service org.tizen.voice.vcserver.service
 builddir=$(basename $PWD)
 gcno_obj_dir=%{buildroot}%{_datadir}/gcov/obj/%{name}/"$builddir"
 mkdir -p "$gcno_obj_dir"
+find ./server/ -name '*.gcno' -exec rm {} \;
+find ./audio-manager/ -name '*.gcno' -exec rm {} \;
+find ./tests/ -name '*.gcno' -exec rm {} \;
+find ./engine-parser/ -name '*.gcno' -exec rm {} \;
+find . -name '*_client.c.gcno' -exec rm {} \;
+find . -name '*_dbus.c.gcno' -exec rm {} \;
+find . -name '*_cmd_db.c.gcno' -exec rm {} \;
+find . -name '*_command*.gcno' -exec rm {} \;
+find . -name '*_config_*.gcno' -exec rm {} \;
+find . -name '*_parser.c.gcno' -exec rm {} \;
+find . -name '*_data*.gcno' -exec rm {} \;
+find . -name 'vc_mgr*.gcno' -exec rm {} \;
+find . -name 'vc_setting*.gcno' -exec rm {} \;
+find . -name 'vc_widget*.gcno' -exec rm {} \;
 find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';'
 %endif
 
@@ -157,7 +171,7 @@ setup() {
 
 test_main() {
     echo "test_main start"
-    launch_app org.tizen.vc-unittests
+    launch_app org.tizen.vc-unittests __AUL_SDK__ UNIT_TEST __LAUNCH_APP_MODE__ SYNC
 }
 
 teardown() {