From 62644c8a11f033b864b596744516f6c6499783d8 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Thu, 2 Jun 2022 11:10:35 +0900 Subject: [PATCH] Fix build break issue Change-Id: Ib4105c27ccbc93063fdf5e3dcfe8023f5cc3dc9e Signed-off-by: Hwankyu Jhun --- packaging/message-port.spec | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/packaging/message-port.spec b/packaging/message-port.spec index 11c4aff..0ce9cb6 100644 --- a/packaging/message-port.spec +++ b/packaging/message-port.spec @@ -18,7 +18,6 @@ BuildRequires: pkgconfig(gmock) %if 0%{?gcov:1} BuildRequires: lcov -BuildRequires: zip %endif Requires(post): /sbin/ldconfig @@ -83,22 +82,10 @@ mkdir -p "$gcno_obj_dir" find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';' %endif -%check -export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}/ -ctest -V - -%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 - cat << EOF > run-unittest.sh #!/bin/sh setup() { echo "setup start" - %{_aulresdir}/tpk/install.sh } test_main() { @@ -122,6 +109,15 @@ EOF mkdir -p %{buildroot}%{_bindir}/tizen-unittests/%{name} install -m 0755 run-unittest.sh %{buildroot}%{_bindir}/tizen-unittests/%{name}/ +%check +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}/ +ctest -V + +%if 0%{?gcov:1} +lcov -c --ignore-errors graph --no-external -b . -d . -o %{name}.info +genhtml %{name}.info -o out --legend --show-details +%endif + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig -- 2.7.4