From 4f8047deeed913de3e4424f4dd54804d9f9aed6d Mon Sep 17 00:00:00 2001 From: Hosang Kim Date: Fri, 13 Jan 2023 14:00:19 +0900 Subject: [PATCH] aurum: disable line coverage test if aurum unittest is ready, it will be enabled. Change-Id: I3a667d72c9c5f0cf55de239e257d49d9a5897cc4 --- packaging/aurum.spec | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/packaging/aurum.spec b/packaging/aurum.spec index 28b1a06..cffa9f4 100644 --- a/packaging/aurum.spec +++ b/packaging/aurum.spec @@ -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 -- 2.34.1