Fix pkg_upgrader 68/262068/10
authorjh9216.park <jh9216.park@samsung.com>
Mon, 2 Aug 2021 08:07:20 +0000 (04:07 -0400)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Thu, 5 Aug 2021 00:38:06 +0000 (00:38 +0000)
commita8881a32e89731364f1dff560bd55a8636d8a03f
tree817e8a795c9f3d8af8406b2d88be598cbe280997
parent521f68182367e840140c4ec3cf667af3c324e6cd
Fix pkg_upgrader

- In case of Uninstall operation, the tool shouldn't unzip files
- Fixed PkgUpgrader::CompareVersion()
- Added unittests

Change-Id: I31d591527b37a4d97d5d80c5e9f1c9867409d11d
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
src/pkg_upgrade/src/backend_invoker.cc
src/pkg_upgrade/src/pkg_upgrader.cc
src/pkg_upgrade/src/rw2ro_upgrader.cc
src/pkg_upgrade/src/rw_upgrader.cc
tests/mock/os_mock.cc
tests/mock/os_mock.h
tests/unit_tests/pkg_upgrade/data/packages/org.tizen.app-selector.xml [deleted file]
tests/unit_tests/pkg_upgrade/data/packages/org.tizen.bluetooth.xml [deleted file]
tests/unit_tests/pkg_upgrade/data/rw/list.txt
tests/unit_tests/pkg_upgrade/src/test_backend_invoker.cc
tests/unit_tests/pkg_upgrade/src/test_pkg_upgrader.cc