Add option to execute unittest in building package 55/308155/1 accepted/tizen/8.0/unified/20240320.143615
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 19 Mar 2024 01:55:44 +0000 (10:55 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 19 Mar 2024 02:04:00 +0000 (11:04 +0900)
Change-Id: I29c5de4eaeb9abd116a4aa26efa26d9d3bcf60fb
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
packaging/capi-ui-sticker.spec

index be2700d..86bd5c3 100644 (file)
@@ -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 graph --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