License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1000: tpk-backend.manifest
-Source1001: tpk-backend-tests.manifest
+Source1001: tpk-installer.manifest
+Source1002: tpk-installer-tests.manifest
+Requires: tpk-installer = %{version}
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: gtest-devel
%description
Backend for tizen package files
+%package -n tpk-installer
+Summary: Tpk-installer library
+Group: Application Framework/Package Management
+
+%description -n tpk-installer
+This package contains tpk-installer library
+
+#%package -n tpk-installer-devel
%package devel
-Summary: Tpk-backend development files
+Summary: Tpk-installer development files
Group: Application Framework/Package Management
-Requires: %{name} = %{version}
+Requires: tpk-installer = %{version}
+#%description -n tpk-installer-devel
%description devel
This package contains header files of tpk-installer library
-%package tests
-Summary: Unit tests for tpk-backend
-Requires: %{name} = %{version}
+%package -n tpk-installer-tests
+Summary: Unit tests for tpk-installer
+Requires: tpk-installer = %{version}
-%description tests
-Unit tests for al modules of app-installers
+%description -n tpk-installer-tests
+Unit tests for tpk-installer
%prep
%setup -q
cp %{SOURCE1000} .
cp %{SOURCE1001} .
+cp %{SOURCE1002} .
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
ln -s %{_bindir}/tpk-backend %{buildroot}%{_sysconfdir}/package-manager/backend/tpk
ln -s %{_bindir}/tpk-backend %{buildroot}%{_sysconfdir}/package-manager/backend/rpm
-%post tests
-/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/tpk-backend-ut/smoke-test
-/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/tpk-backend-ut/smoke-test-helper
-/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/tpk-backend-ut/recovery-test
+%post -n tpk-installer-tests
+/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/tpk-installer-ut/smoke-test
+/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/tpk-installer-ut/smoke-test-helper
+/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/tpk-installer-ut/recovery-test
%files
%{_sysconfdir}/package-manager/backend/tpk
%{_sysconfdir}/package-manager/backend/rpm
-%{_sysconfdir}/package-manager/backendlib/libtpk.so
%license LICENSE
%manifest tpk-backend.manifest
%{_bindir}/tpk-backend
+
+%files -n tpk-installer
+%manifest tpk-installer.manifest
+%{_sysconfdir}/package-manager/backendlib/libtpk.so
%{_libdir}/libtpk-installer.so*
+#%files -n tpk-installer-devel
%files devel
%{_includedir}/app-installers/tpk/*.h
%{_includedir}/app-installers/tpk/*/*/*.h
%{_libdir}/pkgconfig/tpk-installer.pc
-%files tests
-%manifest tpk-backend-tests.manifest
-%{_bindir}/tpk-backend-ut/*
-%{_datadir}/tpk-backend-ut/*
+%files -n tpk-installer-tests
+%manifest tpk-installer-tests.manifest
+%{_bindir}/tpk-installer-ut/*
+%{_datadir}/tpk-installer-ut/*
%changelog
* Thu Dec 18 2015 Pawel Sikorski <p.sikorski@samsung.com> 0.1-1
TEST_F(SmokeTest, RecoveryMode_Tpk_Installation) {
bf::path path = kSmokePackagesDirectory / "RecoveryMode_Tpk_Installation.tpk";
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
- ci::Subprocess backend_crash("/usr/bin/tpk-backend-ut/smoke-test-helper");
+ ci::Subprocess backend_crash("/usr/bin/tpk-installer-ut/smoke-test-helper");
std::string test_uid_str = std::to_string(params.test_user.uid);
backend_crash.Run("-i", path.string(), "-u", test_uid_str.c_str());
ASSERT_NE(backend_crash.Wait(), 0);
bf::path path_new = kSmokePackagesDirectory / "RecoveryMode_Tpk_Update_2.tpk";
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
ASSERT_EQ(backend.Install(path_old), ci::AppInstaller::Result::OK);
- ci::Subprocess backend_crash("/usr/bin/tpk-backend-ut/smoke-test-helper");
+ ci::Subprocess backend_crash("/usr/bin/tpk-installer-ut/smoke-test-helper");
std::string test_uid_str = std::to_string(params.test_user.uid);
backend_crash.Run("-i", path_new.string(), "-u", test_uid_str.c_str());
ASSERT_NE(backend_crash.Wait(), 0);
bf::path path_new = kSmokePackagesDirectory / "RecoveryMode_ForDelta.delta";
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
ASSERT_EQ(ci::AppInstaller::Result::OK, backend.Install(path_old));
- ci::Subprocess backend_crash("/usr/bin/tpk-backend-ut/smoke-test-helper");
+ ci::Subprocess backend_crash("/usr/bin/tpk-installer-ut/smoke-test-helper");
std::string test_uid_str = std::to_string(params.test_user.uid);
backend_crash.Run("-i", path_new.string(), "-u", test_uid_str.c_str());
ASSERT_NE(backend_crash.Wait(), 0);
TEST_F(SmokeTest, RecoveryMode_ForMountInstall) {
bf::path path = kSmokePackagesDirectory / "RecoveryMode_ForMountInstall.tpk";
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
- ci::Subprocess backend_crash("/usr/bin/tpk-backend-ut/smoke-test-helper");
+ ci::Subprocess backend_crash("/usr/bin/tpk-installer-ut/smoke-test-helper");
std::string test_uid_str = std::to_string(params.test_user.uid);
backend_crash.Run("-w", path.string(), "-u", test_uid_str.c_str());
ASSERT_NE(0, backend_crash.Wait());
kSmokePackagesDirectory / "RecoveryMode_ForMountUpdate2.tpk";
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
ASSERT_EQ(ci::AppInstaller::Result::OK, backend.MountInstall(path_old));
- ci::Subprocess backend_crash("/usr/bin/tpk-backend-ut/smoke-test-helper");
+ ci::Subprocess backend_crash("/usr/bin/tpk-installer-ut/smoke-test-helper");
std::string test_uid_str = std::to_string(params.test_user.uid);
backend_crash.Run("-w", path_new.string(), "-u", test_uid_str.c_str());
ASSERT_NE(0, backend_crash.Wait());
TEST_F(SmokeTest, RecoveryMode_CrashAfterUnzip) {
bf::path path = kSmokePackagesDirectory / "RecoveryMode_CrashAfterUnzip.tpk";
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
- ci::Subprocess backend_crash("/usr/bin/tpk-backend-ut/smoke-test-helper");
+ ci::Subprocess backend_crash("/usr/bin/tpk-installer-ut/smoke-test-helper");
std::string test_uid_str = std::to_string(params.test_user.uid);
backend_crash.Run("-i", path.string(), "-u", test_uid_str.c_str(),
"-step_name", "Unzip");
kSmokePackagesDirectory / "RecoveryMode_SharedData_2.tpk";
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
ASSERT_EQ(backend.Install(path_old), ci::AppInstaller::Result::OK);
- ci::Subprocess backend_crash("/usr/bin/tpk-backend-ut/smoke-test-helper");
+ ci::Subprocess backend_crash("/usr/bin/tpk-installer-ut/smoke-test-helper");
std::string test_uid_str = std::to_string(params.test_user.uid);
backend_crash.Run("-i", path_new.string(), "-u", test_uid_str.c_str());
ASSERT_NE(backend_crash.Wait(), 0);
kSmokePackagesDirectory / "RecoveryMode_NonSharedData_2.tpk";
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
ASSERT_EQ(backend.Install(path_old), ci::AppInstaller::Result::OK);
- ci::Subprocess backend_crash("/usr/bin/tpk-backend-ut/smoke-test-helper");
+ ci::Subprocess backend_crash("/usr/bin/tpk-installer-ut/smoke-test-helper");
std::string test_uid_str = std::to_string(params.test_user.uid);
backend_crash.Run("-i", path_new.string(), "-u", test_uid_str.c_str());
ASSERT_NE(backend_crash.Wait(), 0);