From 31ace04f641bf94e902c6cd71873b615b7e65561 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Wed, 2 Aug 2023 09:49:36 +0900 Subject: [PATCH] Remove unnecessary unittest rpm unittest rpm required if native tct is not enough Change-Id: Icd1ae0c9f89729817712c9183123ca799ad3e5fd Signed-off-by: Wootak Jung --- packaging/capi-network-bluetooth.spec | 41 +++-------------------------------- 1 file changed, 3 insertions(+), 38 deletions(-) diff --git a/packaging/capi-network-bluetooth.spec b/packaging/capi-network-bluetooth.spec index 30dfbc1..6cf565a 100644 --- a/packaging/capi-network-bluetooth.spec +++ b/packaging/capi-network-bluetooth.spec @@ -52,12 +52,6 @@ Summary: %{name} gcov data gcov objects %endif -%package unittests -Summary: %{name} unittests binary - -%description unittests -unittests binary - %prep %setup -q cp %{SOURCE1001} %{SOURCE1002} . @@ -119,33 +113,6 @@ find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';' #mkdir -p %{buildroot}%{_unitdir} #install -m 0644 tests/test/bt_infinite_spp_test_server.service %{buildroot}%{_unitdir}/bt_infinite_spp_test_server.service -cat << EOF > run-unittest.sh -#!/bin/bash -setup() { - echo "setup start" -} - -test_main() { - echo "test_main start" - LD_PRELOAD=/usr/lib/libbluetooth-mock.so /usr/bin/tct-bluetooth-core -} - -teardown() { - echo "teardown start" -} - -main() { - setup - test_main - teardown -} - -main "$@" -EOF - -mkdir -p %{buildroot}%{_bindir}/tizen-unittests/%{name} -install -m 0755 run-unittest.sh %{buildroot}%{_bindir}/tizen-unittests/%{name} - %check LD_LIBRARY_PATH=. LD_PRELOAD=tests/unittest/libbluetooth-mock.so tests/unittest/tct-bluetooth-core %if 0%{?gcov:1} @@ -172,6 +139,9 @@ genhtml %{name}.info -o out --legend --show-details %{_bindir}/ble_mouse_with_error %{_bindir}/hid_keyboard %{_bindir}/bt_infinite_spp_test +%exclude %{_bindir}/tct-bluetooth-core +%exclude %{_libdir}/libbluetooth-mock.so +%exclude %{_libdir}/debug/* #%{_unitdir}/bt_infinite_spp_test_server.service #/etc/smack/accesses.d/capi-network-bluetooth-test.efl @@ -191,8 +161,3 @@ genhtml %{name}.info -o out --legend --show-details %files gcov %{_datadir}/gcov/obj/* %endif - -%files unittests -%{_libdir}/libbluetooth-mock.so -%{_bindir}/tct-bluetooth-core -%{_bindir}/tizen-unittests/%{name}/run-unittest.sh -- 2.7.4