%description -n libbluetooth-share-devel
Development package for libbluetooth-share
+%if 0%{?gtests:1}
+%package test
+Summary: Test package for bluetooth-share
+Group: TO_BE/FILLED
+Requires: %{name} = %{version}-%{release}
+
+%description test
+This package is C-API test application.
+%endif
+
%prep
%setup -q
cp %{SOURCE1001} %{SOURCE1002} %{SOURCE1003} .
%{_libdir}/systemd/system/bluetooth-share.service
%{upgrade_script_path}/500.bluetooth-share_upgrade.sh
%{upgrade_data_path}/init_db.sh
-%if 0%{?gtests:1}
-%{_bindir}/gtest-bluetooth-share
-%exclude %{_libdir}/libbt-share.so*
-%exclude %{_libdir}/debug/*
-%exclude %{_libdir}/debug/.build-id/*
-%endif
%files -n libbluetooth-share
%manifest libbluetooth-share.manifest
%{_includedir}/bluetooth-share-api/bluetooth-share-api.h
%{_libdir}/libbluetooth-share-api.so
%{_libdir}/pkgconfig/bluetooth-share-api.pc
+
+%if 0%{?gtests:1}
+%files test
+%manifest %{name}.manifest
+%{_bindir}/gtest-bluetooth-share
+%{_libdir}/libbt-share.so*
+%exclude %{_libdir}/debug/*
+%exclude %{_libdir}/debug/.build-id/*
+%endif
\ No newline at end of file
int ret = BT_SHARE_ERROR_NONE;
ret = _bt_share_block_sleep(TRUE);
- ASSERT_FALSE(ret == BT_SHARE_ERROR_NONE);
+ ASSERT_TRUE(ret == BT_SHARE_ERROR_NONE);
ret = _bt_share_block_sleep(FALSE);
- ASSERT_FALSE(ret == BT_SHARE_ERROR_NONE);
+ ASSERT_TRUE(ret == BT_SHARE_ERROR_NONE);
}
int main(int argc, char **argv) {