Group: Network/Testing
%description gcov
gcov objects for coverage test
-%endif
%package unittests
Summary: %{name} unittests binary
%description unittests
unittests binary
+%endif
%prep
%setup -q
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
mkdir -p %{buildroot}%{_bindir}/tizen-unittests/%{name}
install -m 0755 run-unittest.sh %{buildroot}%{_bindir}/tizen-unittests/%{name}/
cp tests/libdp-interface-mock.so %{buildroot}%{_bindir}/tizen-unittests/%{name}/
+%endif
%check
%if 0%{?gcov:1}
%if 0%{?gcov:1}
%files gcov
%{_datadir}/gcov/obj/*
-%endif
%files unittests
%{_bindir}/url-download-gtest
%{_bindir}/tizen-unittests/%{name}/run-unittest.sh
-%{_bindir}/tizen-unittests/%{name}/*.so
\ No newline at end of file
+%{_bindir}/tizen-unittests/%{name}/*.so
+%endif