aurum: disable line coverage test 00/286800/1 accepted/tizen/unified/20230210.160931
authorHosang Kim <hosang12.kim@samsung.com>
Fri, 13 Jan 2023 05:00:19 +0000 (14:00 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Fri, 13 Jan 2023 05:01:46 +0000 (14:01 +0900)
if aurum unittest is ready, it will be enabled.

Change-Id: I3a667d72c9c5f0cf55de239e257d49d9a5897cc4

packaging/aurum.spec

index 28b1a0673346638a37e94344f136ba69c83edf82..cffa9f47d03e1867e940f0b8321b21bb22ef0917 100644 (file)
@@ -40,10 +40,6 @@ BuildRequires: pkgconfig(jsoncpp)
 BuildRequires:  doxygen
 %endif
 
-%if 0%{?gcov:1}
-BuildRequires:  lcov
-%endif
-
 BuildRequires:  hash-signer
 %if 0%{?sec_product_feature_profile_wearable}
 Requires(post): signing-client
@@ -79,14 +75,6 @@ Requires: libgrpc
 documentations for aurum
 %endif
 
-%if 0%{?gcov:1}
-%package gcov
-Summary:    Aurum - Ui Automation (gcov)
-Group:      Graphics & UI Framework/Testing
-%description gcov
-Ui Automation Library Aurum gcov objects
-%endif
-
 %prep
 %setup -q
 cp %{SOURCE1001} .
@@ -97,16 +85,6 @@ cp %{SOURCE1001} .
 export LDFLAGS+="-Wl,-z,noexecstack"
 %endif
 
-%if 0%{?gcov:1}
-export CFLAGS+=" -fprofile-arcs -ftest-coverage "
-export CXXFLAGS+=" -fprofile-arcs -ftest-coverage "
-export FFLAGS+=" -fprofile-arcs -ftest-coverage"
-export LDFLAGS+=" -lgcov"
-%define TIZEN_GCOV true
-%else
-%define TIZEN_GCOV false
-%endif
-
 %if 0%{?gendoc:1}
 %define TIZEN_GEN_DOC true
 %else
@@ -126,7 +104,6 @@ meson \
     -Dtizen=true \
     -Denable_documentation=%{TIZEN_GEN_DOC} \
     -Dmqtt_enabled=%{MQTT_ENABLED} \
-    -Dtizen_gcov=%{TIZEN_GCOV} \
     -Dtzapp_path=%{TZ_SYS_RO_APP} \
     -Dtzpackage_path=%{TZ_SYS_RO_PACKAGES} \
     gbsbuild 2>&1 | sed \
@@ -143,11 +120,6 @@ ninja \
         -e 's%^.*: error: .*$%\x1b[37;41m&\x1b[m%' \
         -e 's%^.*: warning: .*$%\x1b[30;43m&\x1b[m%'
 
-%if 0%{?gcov:1}
-  mkdir -p gcov-obj
-  find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
-%endif
-
 #Enable below test if needed
 #meson test \
 #    -C gbsbuild \
@@ -164,11 +136,6 @@ ninja \
 export DESTDIR=%{buildroot}
 ninja -C gbsbuild install
 
-%if 0%{?gcov:1}
-mkdir -p %{buildroot}%{_datadir}/gcov/obj
-install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
-%endif
-
 %post
 sbin/ldconfig
 
@@ -217,9 +184,3 @@ tpk-backend -y org.tizen.aurum-bootstrap --preload
 %license COPYING
 %{_datadir}/doc/aurum/
 %endif
-
-%if 0%{?gcov:1}
-%files gcov
-%{_datadir}/gcov/obj/*
-%{_bindir}/test_*
-%endif