From: Jihoon Kim Date: Tue, 19 Mar 2024 01:55:44 +0000 (+0900) Subject: Add option to execute unittest in building package X-Git-Tag: accepted/tizen/unified/20240319.141101 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen%2Funified%2F20240319.141101;p=platform%2Fcore%2Fuifw%2Fcapi-ui-sticker.git Add option to execute unittest in building package Change-Id: I29c5de4eaeb9abd116a4aa26efa26d9d3bcf60fb Signed-off-by: Jihoon Kim --- diff --git a/packaging/capi-ui-sticker.spec b/packaging/capi-ui-sticker.spec index 99bc0c4..031c8a9 100644 --- a/packaging/capi-ui-sticker.spec +++ b/packaging/capi-ui-sticker.spec @@ -183,12 +183,14 @@ install -m 0644 %SOURCE3 %{buildroot}%{_sysconfdir}/dbus-1/system.d/capi-ui-stic %check %if 0%{?gcov:1} +%if 0%{?run_unittest:1} ctest --output-on-failure %{?_smp_mflags} lcov -c --ignore-errors mismatch,graph,unused --no-external -q -d . -o capi-ui-sticker.info genhtml capi-ui-sticker.info -o capi-ui-sticker.out zip -r capi-ui-sticker.zip capi-ui-sticker.out capi-ui-sticker.info install -m 0644 capi-ui-sticker.zip %{buildroot}%{_datadir}/gcov %endif +%endif %post /sbin/ldconfig