Reworked sharing of widget's shared/res directory. 55/88255/10
authorPiotr Dabrowski <p.dabrowski2@samsung.com>
Mon, 19 Sep 2016 13:43:16 +0000 (15:43 +0200)
committerjaekuk lee <juku1999@samsung.com>
Tue, 14 Mar 2017 01:10:03 +0000 (18:10 -0700)
commit8df9eaf6ee1ad528374695dd58f7a0a25aace5b9
tree053ce296a27cd330957a4410d68a9fab0398eb2f
parentf32618319568331491d0f6e3b7ce777f6e462bc1
Reworked sharing of widget's shared/res directory.

./res/wgt/shared/res directory content was moved to ./shared/res
and then ./res/wgt/shared/res was symlinked to ./shared/res

This broke signatures check for delta update.

Now all items (files and directories) under ./res/wgt/shared/res
are symlinked into ./shared/res, and vice versa.
During delta update these symlinks are removed, so that the
signatures check can complete successfully, and later the symlinks
are recreated again.

Added smoke tests for symlinking shared/res contents in Tizen 3.0

To added tests pass requires:
- https://review.tizen.org/gerrit/#/c/117264/

Change-Id: I9423d78aba5cb338b14a9f8853754e0fa8980e0c
16 files changed:
src/hybrid/hybrid_installer.cc
src/unit_tests/smoke_test.cc
src/unit_tests/test_samples/smoke/SharedRes24.wgt [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30.wgt [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30Delta.delta [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30Delta.wgt [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30Delta_2.wgt [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30Hybrid.wgt [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30HybridDelta.delta [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30HybridDelta.wgt [new file with mode: 0644]
src/unit_tests/test_samples/smoke/SharedRes30HybridDelta_2.wgt [new file with mode: 0644]
src/wgt/step/filesystem/step_wgt_patch_storage_directories.cc
src/wgt/step/filesystem/step_wgt_patch_storage_directories.h
src/wgt/step/filesystem/step_wgt_undo_patch_storage_directories.cc [new file with mode: 0644]
src/wgt/step/filesystem/step_wgt_undo_patch_storage_directories.h [new file with mode: 0644]
src/wgt/wgt_installer.cc