summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangwan Kwon <sangwan.kwon@samsung.com>2023-09-19 15:25:26 +0900
committerSangwan Kwon <sangwan.kwon@samsung.com>2023-09-19 15:27:42 +0900
commit8a61e03ef4d489256ba151c573a057fbd5106333 (patch)
tree5402035414e8be4b433f619e16930579f996489a
parent746e6946c9b7f0704cbf1a92ae6cd264be075638 (diff)
downloadcsr-framework-8a61e03ef4d489256ba151c573a057fbd5106333.tar.gz
csr-framework-8a61e03ef4d489256ba151c573a057fbd5106333.tar.bz2
csr-framework-8a61e03ef4d489256ba151c573a057fbd5106333.zip
Change-Id: I3694a0d2d64a18a4ed9388e25f28914d132258f7 Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
-rw-r--r--CMakeLists.txt4
-rw-r--r--packaging/csr-framework.spec39
2 files changed, 1 insertions, 42 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea9a599..1d4503e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,10 +56,6 @@ IF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
ADD_DEFINITIONS("-DBUILD_TYPE_DEBUG")
ENDIF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
-IF (BUILD_GCOV)
- ADD_DEFINITIONS("-DTIZEN_TEST_GCOV")
-ENDIF (BUILD_GCOV)
-
SET(TARGET_CSR_SERVER ${SERVICE_NAME}-server)
SET(TARGET_CSR_CLIENT ${SERVICE_NAME}-client)
SET(TARGET_CSR_COMMON ${SERVICE_NAME}-common)
diff --git a/packaging/csr-framework.spec b/packaging/csr-framework.spec
index aaa517c..4e78bee 100644
--- a/packaging/csr-framework.spec
+++ b/packaging/csr-framework.spec
@@ -125,16 +125,6 @@ Requires: %{name} = %{version}
%description test
Content Screening and Reputation framework (test program)
-%if 0%{?gcov:1}
-%package gcov
-Summary: CSR framework (gcov)
-Group: Security/Testing
-BuildRequires: lcov
-
-%description gcov
-Content Screening and Reputation framework (gcov)
-%endif
-
%prep
%setup -q
@@ -147,13 +137,6 @@ Content Screening and Reputation framework (gcov)
%define test_target target
%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"
-%endif
-
%cmake . \
-DCMAKE_BUILD_TYPE=%{?build_type:%build_type}%{!?build_type:RELEASE} \
-DCMAKE_VERBOSE_MAKEFILE=ON \
@@ -189,8 +172,7 @@ export LDFLAGS+=" -lgcov"
%endif
-DTZ_SYS_STORAGE=%TZ_SYS_STORAGE \
-DTZ_SYS_RW_APP=%TZ_SYS_RW_APP \
- -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
- -DBUILD_GCOV=%{?gcov:1}%{!?gcov:0}
+ -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP
make %{?jobs:-j%jobs}
@@ -210,13 +192,6 @@ mkdir -p %{buildroot}%{engine_rw_working_dir}
%find_lang %{service_name}
-%if 0%{?gcov:1}
-builddir=$(basename $PWD)
-gcno_obj_dir=%{buildroot}%{_datadir}/gcov/obj/%{name}/"$builddir"
-mkdir -p "$gcno_obj_dir"
-find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';'
-%endif
-
%post
rm -f %{rw_db_dir}/.%{service_name}.db*
@@ -272,13 +247,6 @@ touch %{engine_rw_working_dir}/csret_cs_virus_signatures
touch %{engine_rw_working_dir}/csret_wp_risky_urls
%endif
-%if 0%{?gcov:1}
-chmod 777 -R /tmp/home/abuild/rpmbuild/BUILD/csr-framework-*
-su - owner -c %{bin_dir}/%{service_name}-test
-%{bin_dir}/%{service_name}-internal-test
-%{bin_dir}/%{service_name}-threadpool-test
-%endif
-
%files -f %{service_name}.lang
%defattr(-,root,root,-)
%manifest %{service_name}.manifest
@@ -366,8 +334,3 @@ su - owner -c %{bin_dir}/%{service_name}-test
%{engine_dir}/lib%{service_name}-wp-engine.so
%attr(-, %{service_user}, %{service_group}) %{engine_rw_working_dir}/*
%endif
-
-%if 0%{?gcov:1}
-%files gcov
-%{_datadir}/gcov/obj/*
-%endif