platform/core/appfw/tpk-backend.git
8 years agoImplement reinstall request handling 55/64655/7
Tomasz Iwanek [Mon, 4 Apr 2016 12:10:22 +0000 (14:10 +0200)]
Implement reinstall request handling

Requires:
 - https://review.tizen.org/gerrit/#/c/64662/

To verify, run new smoke test:
 /usr/bin/tpk-backend-ut/smoke-test --gtest_filter="*Reinstall*"

Change-Id: I59112f8a290674548f45a63988d5cceb1954d5ea

8 years agoClear data smoke test 85/61785/2
Tomasz Iwanek [Thu, 10 Mar 2016 11:58:31 +0000 (12:58 +0100)]
Clear data smoke test

Change-Id: I7f3fc5c333c247b9c9fcd64b172bd2a9acc89b94

8 years agoRevert "Revert "Remove testcases of author validation"" 53/64753/1 accepted/tizen/common/20160406.144142 accepted/tizen/ivi/20160406.071931 accepted/tizen/mobile/20160406.071826 accepted/tizen/tv/20160406.071847 accepted/tizen/wearable/20160406.071909 submit/tizen/20160406.013051
Tomasz Iwanek [Tue, 5 Apr 2016 07:52:31 +0000 (09:52 +0200)]
Revert "Revert "Remove testcases of author validation""

This reverts commit 2cd0ec5ba200a9e46eb6bb40ec124125820fe193.

Change-Id: Iead13963b2979a0b4973048817ba37347a124662

8 years agoAdd StepCreatePerUserStorageDirectories at DirectInstall mode 07/63807/3
Sangyoon Jang [Mon, 28 Mar 2016 02:12:57 +0000 (11:12 +0900)]
Add StepCreatePerUserStorageDirectories at DirectInstall mode

Change-Id: I791a36ef4796dee857db0fed9801a9eae14ac8e0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRevert "Remove testcases of author validation" 93/64493/1
jongmyeong ko [Fri, 1 Apr 2016 11:27:02 +0000 (04:27 -0700)]
Revert "Remove testcases of author validation"

This reverts commit ce16c647224fa8c0168c8e0df94b62e6164d28b0.

Change-Id: I40d1834fc8c842e15aad9c7e2965f1aa6fd8ab7f

8 years agoRemove testcases of author validation 58/61758/2
Tomasz Iwanek [Thu, 10 Mar 2016 09:42:43 +0000 (10:42 +0100)]
Remove testcases of author validation

Verify:
 /usr/bin/tpk-backend-ut/manifest-test --gtest_filter="*AuthorElement*" # passrate: (2/2)

Change-Id: Iae89c1beab4e50066a132ec6665eb953a602266e

8 years agoRework step/ directory structure 95/61795/4 accepted/tizen/common/20160322.145757 accepted/tizen/ivi/20160322.003618 accepted/tizen/mobile/20160322.003540 accepted/tizen/tv/20160322.003553 accepted/tizen/wearable/20160322.003559 submit/tizen/20160321.131614 submit/tizen/20160321.153043
Tomasz Iwanek [Thu, 10 Mar 2016 12:39:59 +0000 (13:39 +0100)]
Rework step/ directory structure

Steps are moved to subdirectories according to their namespace.

Submit together with:
 - https://review.tizen.org/gerrit/61795
 - https://review.tizen.org/gerrit/61796
 - https://review.tizen.org/gerrit/61797

Build to verify, no logic changes were made.

Change-Id: I08544506f807598467db6d046bfd6ecea815a85b

8 years agoFix testcase "ManifestTest.WatchApplicationElement_SetManifestXDefaults" 00/62500/1 accepted/tizen/common/20160321.150435 accepted/tizen/mobile/20160321.113333 accepted/tizen/tv/20160321.113411 accepted/tizen/wearable/20160321.113433 submit/tizen/20160321.014821
Tomasz Iwanek [Wed, 16 Mar 2016 10:35:38 +0000 (11:35 +0100)]
Fix testcase "ManifestTest.WatchApplicationElement_SetManifestXDefaults"

Fix testcase according to commit: 0a3af6c8242ee3ad32490aa2df3c9da589f4bdbc

Requires:
 https://review.tizen.org/gerrit/62497

Run:
 /usr/bin/tpk-backend-ut/manifest-test --gtest_filter="ManifestTest.WatchApplicationElement_SetManifestXDefaults"

Change-Id: Ic6dc5af6ad4fbf99d931a401e6d82166ec623d74

8 years agoRemove WidgetApplicationElement_Main* tests 96/62496/1
Tomasz Iwanek [Wed, 16 Mar 2016 10:28:13 +0000 (11:28 +0100)]
Remove WidgetApplicationElement_Main* tests

Tests are invalid as main attribute doesn't indicate main application of package.

Change-Id: I681d5d3cfeec8b81eb55fa576bf435fa2412e1db

8 years agoCheck removable when uninstall package 11/61911/1
Sangyoon Jang [Fri, 11 Mar 2016 06:25:14 +0000 (15:25 +0900)]
Check removable when uninstall package

Requires:
 - https://review.tizen.org/gerrit/61899

Change-Id: I803c8697ba8c465c4eba5abc3d507516622b3230
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoManifest tests - defaults for manifest_x 86/61386/2 accepted/tizen/common/20160311.050242 accepted/tizen/ivi/20160311.043356 accepted/tizen/mobile/20160311.043307 accepted/tizen/tv/20160311.043322 accepted/tizen/wearable/20160311.043344 submit/tizen/20160311.024723
Tomasz Iwanek [Fri, 4 Mar 2016 13:02:17 +0000 (14:02 +0100)]
Manifest tests - defaults for manifest_x

Requires:
 - https://review.tizen.org/gerrit/61384
 - https://review.tizen.org/gerrit/61385

Verify:
 /usr/bin/tpk-backend-ut/manifest-test --gtest_filter=*_SetManifestXDefaults

4 tests should pass.

Change-Id: Idb94fe4415db2ebdab0e329a8968f3ad6b6db6b0

8 years agoManifest test refactoring 02/61202/2
Tomasz Iwanek [Fri, 4 Mar 2016 14:56:34 +0000 (15:56 +0100)]
Manifest test refactoring

Change-Id: I204cfcd2a7101070872ee778f4ce62f0cac12626

8 years agoManifest tests - watch-application 92/61192/2
Tomasz Iwanek [Fri, 4 Mar 2016 11:47:54 +0000 (12:47 +0100)]
Manifest tests - watch-application

Verify by running:
 /usr/bin/tpk-backend-ut/manifest-test --gtest_filter=ManifestTest.WatchApplicationElement*

Passrate should be: 11/13

Requires:
 - https://review.tizen.org/gerrit/61191

Change-Id: Ifbf8a2e4656883204475cba3c9395829bb56a065

8 years agoManifest tests - widget-application 82/61182/3
Tomasz Iwanek [Fri, 4 Mar 2016 08:48:36 +0000 (09:48 +0100)]
Manifest tests - widget-application

Verify by running:
 /usr/bin/tpk-backend-ut/manifest-test --gtest_filter=ManifestTest.WidgetApplicationElement*

Passrate should be: 15/16

Requires:
 - https://review.tizen.org/gerrit/61181
 - https://review.tizen.org/gerrit/61180

Change-Id: I4eadcfe0d365eb8b7d38f568c15755703125ab41

8 years agoManifest tests - service-application tests 65/61065/4
Tomasz Iwanek [Thu, 3 Mar 2016 14:55:17 +0000 (15:55 +0100)]
Manifest tests - service-application tests

Verify by running:
 /usr/bin/tpk-backend-ut/manifest-test --gtest_filter=ManifestTest.ServiceApplicationElement*

Requires:
 - https://review.tizen.org/gerrit/61016
 - https://review.tizen.org/gerrit/61063
 - https://review.tizen.org/gerrit/61064

Passrate should be: 54/55
One icon test will not pass because requirement of <icon> element not to be empty
was skipped due to preloaded apps.

Change-Id: I40b3bdb5afb812ca55e66f95214488877d8fbbd5

8 years agoManifest tests. Tests for ui-application element 17/61017/3
Tomasz Iwanek [Mon, 29 Feb 2016 14:58:09 +0000 (15:58 +0100)]
Manifest tests. Tests for ui-application element

Splitting tests into several translation units.

Verify by running:
 /usr/bin/tpk-backend-ut/manifest-test --gtest_filter=ManifestTest.UIApplicationElement*

Passrate should be: 61/62 (after applying: https://review.tizen.org/gerrit/61016 )
One icon test will not pass because requirement of <icon> element not to be empty
was skipped due to preloaded apps.

Change-Id: Ia6799e05d3fd42b1a4ac8e5c32257709a57cbe00

8 years agoCheck signature files when ManifestDirect mode 88/60788/4
Sangyoon Jang [Wed, 2 Mar 2016 08:11:42 +0000 (17:11 +0900)]
Check signature files when ManifestDirect mode

Requires:
 - https://review.tizen.org/gerrit/60789

Change-Id: Iba39601556a11a246cfd74a86a0a664845f7f780
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoAdjust tpk-backend to plugin changes 30/59030/5 accepted/tizen/common/20160304.194920 accepted/tizen/common/20160307.153142 accepted/tizen/ivi/20160304.105555 accepted/tizen/mobile/20160304.105438 accepted/tizen/tv/20160304.105457 accepted/tizen/wearable/20160304.105529 submit/tizen/20160303.090142 submit/tizen/20160304.063745
Tomasz Iwanek [Mon, 8 Feb 2016 09:32:27 +0000 (10:32 +0100)]
Adjust tpk-backend to plugin changes

Following changes should be submitted together:
 - https://review.tizen.org/gerrit/#/c/59029/
 - https://review.tizen.org/gerrit/#/c/59028/
 - https://review.tizen.org/gerrit/#/c/59030/
 - https://review.tizen.org/gerrit/#/c/59031/

Change-Id: Ibc7d640daaf2a97ecff50a224a4e9ecb5116de98

8 years agoadd new step for checking pkg directory 70/60470/3 accepted/tizen/common/20160304.194326 accepted/tizen/ivi/20160303.093919 accepted/tizen/mobile/20160303.093804 accepted/tizen/tv/20160303.093828 accepted/tizen/wearable/20160303.093859 submit/tizen/20160303.064856
jongmyeongko [Fri, 26 Feb 2016 10:06:33 +0000 (19:06 +0900)]
add new step for checking pkg directory

Change-Id: Ie05cb3fc5d2191da00b6af957fdbf14027648756
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoRemove testcases for author/description validation 48/60648/2 accepted/tizen/common/20160302.193736 accepted/tizen/ivi/20160302.224036 accepted/tizen/mobile/20160302.223949 accepted/tizen/tv/20160302.224002 accepted/tizen/wearable/20160302.224022 submit/tizen/20160302.065807
Tomasz Iwanek [Mon, 29 Feb 2016 13:01:36 +0000 (14:01 +0100)]
Remove testcases for author/description validation

 - 'ManifestTest.DescriptionElement_Text_Invalid'
 - 'ManifestTest.AuthorElement_Text_Missing'

Preloaded apps have empty tags so this will not be checked.

Change-Id: I6eedf67485e8db1a525c08e3d37ef953af09bc1a

8 years agoRemove testcase 'AuthorElement_Href_Invalid' 44/60644/1
Tomasz Iwanek [Mon, 29 Feb 2016 12:48:06 +0000 (13:48 +0100)]
Remove testcase 'AuthorElement_Href_Invalid'

Change-Id: Ib0654697f0e0450ddecc8b5d0f0a3bfd6669a9fc

8 years agoManifest tests - profile element 03/60503/2 accepted/tizen/common/20160301.025437 submit/tizen/20160229.102401 submit/tizen/20160302.020013
Tomasz Iwanek [Fri, 26 Feb 2016 13:47:31 +0000 (14:47 +0100)]
Manifest tests - profile element

Change-Id: I64c7978ce12420fd200e520a8e72472851221903

8 years agoManifest tests - privileges element 92/60492/2
Tomasz Iwanek [Fri, 26 Feb 2016 13:26:59 +0000 (14:26 +0100)]
Manifest tests - privileges element

Change-Id: I94344c531c1c0ec63679bef222b11ec2ef3f0b00

8 years agoManifest tests - description element 83/60483/2
Tomasz Iwanek [Fri, 26 Feb 2016 11:11:05 +0000 (12:11 +0100)]
Manifest tests - description element

Tests to pass requires:
 - https://review.tizen.org/gerrit/60481
 - https://review.tizen.org/gerrit/60480

Change-Id: Ic843191230b5a804351b4c37130c40dc7f854a04

8 years agoManifest tests - authour element 65/60465/2
Tomasz Iwanek [Thu, 25 Feb 2016 14:51:45 +0000 (15:51 +0100)]
Manifest tests - authour element

Veritication:
 /usr/bin/tpk-backend-ut/manifest-test

Tests to pass require:
 - https://review.tizen.org/gerrit/60463
 - https://review.tizen.org/gerrit/60464

Change-Id: I6a7e319aa493ce23ac93938fee0331a88e02ce5b

8 years agoManifest tests - manifest element 58/60358/2
Tomasz Iwanek [Wed, 24 Feb 2016 11:57:30 +0000 (12:57 +0100)]
Manifest tests - manifest element

Veritication:
 /usr/bin/tpk-backend-ut/manifest-test

Tests to pass require:
 - https://review.tizen.org/gerrit/60281
 - https://review.tizen.org/gerrit/60286
 - https://review.tizen.org/gerrit/60289
 - https://review.tizen.org/gerrit/60357

Change-Id: I75a192ee7a1e27bac04e7a29c0565da5da3b74cf

8 years agoManifest testcase skeleton 34/60034/3
Tomasz Iwanek [Mon, 22 Feb 2016 13:33:03 +0000 (14:33 +0100)]
Manifest testcase skeleton

Testcase skeleton for tests which parse manifest and
set fields in manifest_x structure.

Verification: /usr/bin/tpk-backend-ut/manifest-test

One of tests to pass requires change:
 - https://review.tizen.org/gerrit/60033

Change-Id: I79807551a5505d0924de7cd893039aec5edb3eda

8 years agomodification for seperation of RO/RW location 02/60202/4
jongmyeongko [Wed, 24 Feb 2016 06:30:22 +0000 (15:30 +0900)]
modification for seperation of RO/RW location

Requires:
https://review.tizen.org/gerrit/#/c/60194/
https://review.tizen.org/gerrit/#/c/60200/

Change-Id: I4d30e3091772d12f70892610e3bbb7e5ff27a6d7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoadd pkg type attribute to manifest file. 06/60106/4 accepted/tizen/common/20160301.120553 accepted/tizen/ivi/20160225.081527 accepted/tizen/mobile/20160225.081431 accepted/tizen/tv/20160225.081459 accepted/tizen/wearable/20160225.081512 submit/tizen/20160224.000443 submit/tizen/20160224.092603 submit/tizen_common/20160229.190608
jongmyeongko [Tue, 23 Feb 2016 10:33:28 +0000 (19:33 +0900)]
add pkg type attribute to manifest file.

plus, add symlink for rpm

Change-Id: If588492544e512982c5f248530dc08e7de4e033b
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoAdd StepRemovePerUserStorageDirectories to uninstall step 31/59531/4
Arkadiusz Szulakiewicz [Tue, 16 Feb 2016 09:11:48 +0000 (10:11 +0100)]
Add StepRemovePerUserStorageDirectories to uninstall step

This change depends on the following patch:
https://review.tizen.org/gerrit/#/c/59452/

Change-Id: Icc0ee00c1551eb90fa609220465844ae979f769d

8 years agoAdd StepCreatePerUserStorageDirectories to installation step 29/59529/6
Arkadiusz Szulakiewicz [Tue, 16 Feb 2016 09:06:05 +0000 (10:06 +0100)]
Add StepCreatePerUserStorageDirectories to installation step

This change depends on the following patch:
https://review.tizen.org/gerrit/#/c/59452/

Change-Id: Ic59a15706d07a8698ee2105c5865b11d12ae2b15

8 years agoRework smoke tests 99/59899/2
Tomasz Iwanek [Wed, 17 Feb 2016 09:35:23 +0000 (10:35 +0100)]
Rework smoke tests

Reimplement smoke tests so that they don't use gtest's
EXPECT_DEATH. This will fix problems that are sourced
in forking test binary. "smoke-test-helper" binary is
introduced purely for recovery tests to provide crash
test scenario.

Verification:
 - /usr/bin/tpk-backend-ut/smoke-test

Change-Id: I1ba39f7fa84a7bd1cf2c9d7bca5dd21d20905fe6

8 years agosupport installation of TPK as preload app. 24/59524/2 accepted/tizen/ivi/20160222.011636 accepted/tizen/mobile/20160222.011429 accepted/tizen/tv/20160222.011512 accepted/tizen/wearable/20160222.011551 submit/tizen/20160219.102650
jongmyeongko [Tue, 16 Feb 2016 08:38:02 +0000 (17:38 +0900)]
support installation of TPK as preload app.

Requires:
https://review.tizen.org/gerrit/#/c/59513/

Change-Id: Id640d6bfe65061a89d8bad279a6e59e855ede42a
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoremove not-used attribute (name of icon, name of image) 10/59510/2 accepted/tizen/ivi/20160218.083922 accepted/tizen/mobile/20160218.005902 accepted/tizen/tv/20160218.005915 accepted/tizen/wearable/20160218.005935 submit/tizen/20160217.221050 submit/tizen_common/20160218.142243
jongmyeongko [Tue, 16 Feb 2016 07:06:48 +0000 (16:06 +0900)]
remove not-used attribute (name of icon, name of image)

Requires:
https://review.tizen.org/gerrit/#/c/59508/

Change-Id: I0cc0afc947fc66802e3ed9f87abd0fc4d715cd41
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoAdjust to change in PkgmgrInterface 43/59443/3
Tomasz Iwanek [Tue, 16 Feb 2016 08:57:43 +0000 (09:57 +0100)]
Adjust to change in PkgmgrInterface

Following changes need to be submitted together:
 - https://review.tizen.org/gerrit/59442
 - https://review.tizen.org/gerrit/59443
 - https://review.tizen.org/gerrit/59444

To verify:
 $ /usr/bin/tpk-backend-ut/smoke_test
 # install, update, uninstall and tpk package by tpk-backend directly

Change-Id: If10851e17dace1610a75f571b750dbf3bbfd80ca

8 years agoAdd StepRunParserPlugin to tpk-backend 06/57506/12 accepted/tizen/common/20160217.170651 accepted/tizen/ivi/20160218.023259 accepted/tizen/mobile/20160212.002404 accepted/tizen/tv/20160212.002417 accepted/tizen/wearable/20160212.002444 submit/tizen/20160211.093134 submit/tizen_common/20160217.131930 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000002
Lukasz Wartalowicz [Wed, 20 Jan 2016 13:38:56 +0000 (14:38 +0100)]
Add StepRunParserPlugin to tpk-backend

Requires:
        - https://review.tizen.org/gerrit/#/c/57334/

Add StepRunParserPlugin to tpk-backend

Change-Id: I53637957d88273a06e520548cec795df852b6c7a

8 years agoMove step remove manifest to app-installer 35/59035/3
Arkadiusz Szulakiewicz [Mon, 8 Feb 2016 14:53:25 +0000 (15:53 +0100)]
Move step remove manifest to app-installer

Requires:
https://review.tizen.org/gerrit/59033
https://review.tizen.org/gerrit/59034

Change-Id: I3fe3bd6429a0e048ac934987132c617f457a96cb

8 years agomodify the way of preload decision 64/58864/5 accepted/tizen/mobile/20160205.064207 accepted/tizen/tv/20160205.064222 accepted/tizen/wearable/20160205.064242 submit/tizen/20160205.051501
jongmyeongko [Thu, 4 Feb 2016 07:42:22 +0000 (16:42 +0900)]
modify the way of preload decision

Requires:
https://review.tizen.org/gerrit/#/c/58863

Change-Id: Ic9109f137237fd26973033093c677f213604fdbf
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoadd symlink for ui-gadget application 89/58789/6
jongmyeongko [Wed, 3 Feb 2016 11:10:21 +0000 (20:10 +0900)]
add symlink for ui-gadget application

Change-Id: I85486ac70ac4d2ed78077b76b52035349228000a
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoImplement PKGMGR_REQUEST_TYPE_CLEARDATA for tpk-backend 47/58247/6
Tomasz Iwanek [Thu, 28 Jan 2016 13:11:05 +0000 (14:11 +0100)]
Implement PKGMGR_REQUEST_TYPE_CLEARDATA for tpk-backend

Verify by running: pkgcmd -t tpk -c -n $pkgid_of_installed_package
and check if all content of apps_rw/$pkgid/data/ was removed.

Requires:
 - https://review.tizen.org/gerrit/58245

Change-Id: Ia68cf1269f46b4a5306eed43ecc7f8673aa00f7e

8 years agoIgnore icon copy error for preload apps 15/58515/2 accepted/tizen/mobile/20160203.051926 accepted/tizen/tv/20160203.051943 accepted/tizen/wearable/20160203.052012 submit/tizen/20160203.003555
Tomasz Iwanek [Mon, 1 Feb 2016 12:54:47 +0000 (13:54 +0100)]
Ignore icon copy error for preload apps

Preload apps may have absolute icon->text value pointing to
non existing file. We intentionally ignore this to make them
able to be installed.

Change-Id: Id6b9982b84e64931d5cc92dc6f65ad4d2159fa08

8 years agoCheck the given package is blacklisted when install 58/58458/7
Sangyoon Jang [Mon, 1 Feb 2016 08:09:40 +0000 (17:09 +0900)]
Check the given package is blacklisted when install

Requires:
 - https://review.tizen.org/gerrit/#/c/58457/

Change-Id: If6c53d2afcecc5280ad80a84eef0598b81219397
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoWrite preload attribute in application manifest 26/58626/4
Lukasz Wysocki [Tue, 2 Feb 2016 09:03:03 +0000 (10:03 +0100)]
Write preload attribute in application manifest

Change-Id: Ic08b466f1cbedcf62e23f4f85386a00eb4e72496

8 years agoHide error message for root user 89/58489/1
Lukasz Wysocki [Mon, 1 Feb 2016 11:46:37 +0000 (12:46 +0100)]
Hide error message for root user

Change-Id: Ia0aae587c8b10f83027ab7fd68c3593ff46a364b

8 years agoIcon fix 58/58358/4 devel/ivi submit/devel/ivi/20160202.111127 submit/devel/ivi/20160202.111936
Tomasz Iwanek [Thu, 28 Jan 2016 14:54:56 +0000 (15:54 +0100)]
Icon fix

Application icon will be copied to shared/res/ if application->icon refers
to icon from outside of package (some preloaded apps may declare absolute path of icon).

Requires to be submitted with:
 - https://review.tizen.org/gerrit/#/c/58360/

Change-Id: I7cfc8726565a9fb7e65a2d2a3eefe40d20d1edb3

8 years agoSet exec permission only for tpk apps in StepCreateSymbolicLink 04/58104/2
Tomasz Iwanek [Wed, 27 Jan 2016 12:17:40 +0000 (13:17 +0100)]
Set exec permission only for tpk apps in StepCreateSymbolicLink

Change-Id: I8d9e7bd296222129fca45baf9259c0a597a76795

8 years agoFix recovery smoke test 57/57157/4 accepted/tizen/mobile/20160129.083335 accepted/tizen/tv/20160129.083410 accepted/tizen/wearable/20160129.083433 submit/tizen/20160127.110348
Tomasz Iwanek [Fri, 15 Jan 2016 12:32:08 +0000 (13:32 +0100)]
Fix recovery smoke test

Requires:
 - https://review.tizen.org/gerrit/45316

Verify by:
 $ /usr/bin/tpk-backend-ut/smoke_test --gtest_filter=SmokeTest.RecoveryMode_Tpk_Update
 $ /usr/bin/tpk-backend-ut/smoke_test --gtest_filter=SmokeTest.RecoveryMode_Tpk_Installation

Change-Id: I5f6696f668ea4b8149840b36c25d9e2bc15e1063

8 years agoAdd StepParsePreload 65/57465/18
Arkadiusz Szulakiewicz [Wed, 20 Jan 2016 08:53:28 +0000 (09:53 +0100)]
Add StepParsePreload

This change is dependant on the following patches:
https://review.tizen.org/gerrit/57463
https://review.tizen.org/gerrit/57647

Change-Id: I260435ac4dacad2f527dce1aac99afa5c6ed079e

8 years agoSet executable permission before creating symlink 26/57926/1 submit/devel/ivi/20160203.005039 submit/tizen/20160126.100658
Sangyoon Jang [Tue, 26 Jan 2016 05:52:11 +0000 (14:52 +0900)]
Set executable permission before creating symlink

The executable file must get execute permission even if the app type is
not 'capp' type.

Change-Id: I348016776cc36a3386556cb2c81dcdcfe3bf46ea
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoSwitch parsing procedures to StepParseManifest 51/57751/1 submit/tizen/20160122.140520
Tomasz Iwanek [Thu, 21 Jan 2016 14:20:49 +0000 (15:20 +0100)]
Switch parsing procedures to StepParseManifest

Run smoke tests to verify.

Requires:
 - https://review.tizen.org/gerrit/57750

Change-Id: Iae12506595ad9e86c9e8aa18627472d4a19ad5cf

8 years agoFix icon copying 59/57259/4 accepted/tizen/mobile/20160122.032617 accepted/tizen/tv/20160122.032703 accepted/tizen/wearable/20160122.032713 submit/tizen/20160120.112210
Tomasz Iwanek [Mon, 18 Jan 2016 10:31:05 +0000 (11:31 +0100)]
Fix icon copying

Icons element are receiving full path in StepParse from now
for both wgt and tpk backend and all modes.

Steps:
 - StepCreateIcons
 - StepBackupIcons
 - StepRecoverIcons
 - StepRemoveIcons
handles icon files only outside package directory (those in: $HOME/.applications/icons/*)
Icons within application directories are copied together with whole package directory (StepCopy)
and are not managed by those steps.

To handle copying icons within package directory new steps are introduced:
 - StepWgtPatchIcons (copy to $package/shared/res/ from widget content directory)
 - StepTpkPatchIcons (copy to $package/shared/res/ if they are in different location, e.g. preload apps)

Following changes needs to be submitted together:
 - https://review.tizen.org/gerrit/57258 (wgt-backend)
 - https://review.tizen.org/gerrit/57257 (app-installers)
 - https://review.tizen.org/gerrit/57259 (tpk-backend)

Verify by:
 $ /usr/bin/tpk-backend-ut/smoke_test --gtest_filter=SmokeTest.UpdateMode_Tpk
 $ /usr/bin/tpk-backend-ut/smoke_test --gtest_filter=SmokeTest.InstallationMode_Tpk
 $ /usr/bin/tpk-backend-ut/smoke_test --gtest_filter=SmokeTest.DeltaMode_Tpk
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.InstallationMode
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.UpdateMode
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.RDSMode
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.DeltaMode
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.UpdateMode_Rollback
 $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.InstallationMode_Rollback

Change-Id: Ib4d9c86f76b4308eb4258cef1882cc8fe79965fb

8 years agoStepCreateSymbolicLink - ignoring non-tpk apps 18/56918/3 accepted/tizen/mobile/20160115.010735 accepted/tizen/mobile/20160115.010918 accepted/tizen/tv/20160115.010747 accepted/tizen/tv/20160115.010932 accepted/tizen/wearable/20160115.010806 accepted/tizen/wearable/20160115.010953 submit/tizen/20160114.141522 submit/tizen/20160114.224350
Tomasz Iwanek [Tue, 12 Jan 2016 11:33:10 +0000 (12:33 +0100)]
StepCreateSymbolicLink - ignoring non-tpk apps

Change-Id: I2c6b0ec90762c39751553647e5b09c8a87af582b

8 years agoRefactoring UI, Widget and Service Application Handlers 15/54915/3
Lukasz Wysocki [Fri, 18 Dec 2015 15:39:26 +0000 (16:39 +0100)]
Refactoring UI, Widget and Service Application Handlers

This change depend on:
- https://review.tizen.org/gerrit/#/c/54456/

Change-Id: Ib0350bcf1c844999a3035ec9e6e76915038cf033

8 years agoExport devel package 24/56724/3
Tomasz Iwanek [Tue, 12 Jan 2016 09:14:43 +0000 (10:14 +0100)]
Export devel package

This will be used in wgt-backend to use some of steps

Change-Id: I589b605930b7ef9aa7fa01abb7384759596d54e2

8 years agoRemove unnecessary code 46/56746/2
Lukasz Wysocki [Tue, 12 Jan 2016 10:14:36 +0000 (11:14 +0100)]
Remove unnecessary code

This change depend on following commits:
- https://review.tizen.org/gerrit/#/c/56745/

Change-Id: I6722b582bb5db8f11920948fdf5580690e40a1c5

8 years agoFix getting icon path 31/55731/5
Sangyoon Jang [Tue, 29 Dec 2015 04:47:47 +0000 (13:47 +0900)]
Fix getting icon path

- get icon path from tpk package also
- check if the file exists from unpacked dir
- check from shared directory first

Change-Id: Ifd30f1f28d52bc1344b8a9ed7800612ac0960a60
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agochange some returning error-codes 60/56660/2
jongmyeongko [Mon, 11 Jan 2016 23:20:36 +0000 (08:20 +0900)]
change some returning error-codes

Change-Id: If855478dc5aeb010173aca84b2d7b484ac40b517
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoDirect manifest installation should not check signature 36/55236/5 accepted/tizen/mobile/20160108.064848 accepted/tizen/tv/20160108.064908 accepted/tizen/wearable/20160108.064936 submit/tizen/20160108.020058
Tomasz Iwanek [Tue, 22 Dec 2015 08:43:17 +0000 (09:43 +0100)]
Direct manifest installation should not check signature

There is no signature in those packages. Privilege level = PLATFORM
is automatically granted for directly installed packages.

Change TpkAppQueryInterface::IsAppInstalledByArgv according to other
changes.

Change-Id: Ie6c5e906aa6e60b71b3ebb8cfa9897a6c080da99
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoFix paths in smoke tests 12/56412/2
Tomasz Iwanek [Thu, 7 Jan 2016 10:38:00 +0000 (11:38 +0100)]
Fix paths in smoke tests

Change-Id: I60006bf059b131fda7c8f82ef436754d9b66f12b

8 years agofix codes to manifest direct install works properly for preload apps 07/55107/2 accepted/tizen/mobile/20151224.063317 accepted/tizen/tv/20151224.063350 accepted/tizen/wearable/20151224.063430 submit/tizen/20151224.015514 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
Junghyun Yeon [Tue, 22 Dec 2015 02:57:35 +0000 (11:57 +0900)]
fix codes to manifest direct install works properly for preload apps

[app-installers][tpk-backend]

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Change-Id: I08ea4f838e00a9e7a0a261a9eb619133b54deca8

8 years agoMove tpk-backend implementation from app-installers 87/54887/3 accepted/tizen/mobile/20151219.044134 accepted/tizen/tv/20151219.044545 accepted/tizen/wearable/20151219.044842 submit/tizen/20151218.151823
Tomasz Iwanek [Mon, 14 Dec 2015 13:23:59 +0000 (14:23 +0100)]
Move tpk-backend implementation from app-installers

Requires to be submitted with:
 - https://review.tizen.org/gerrit/#/c/54291/

Aligned with app-installer's commit: 532a4707928d6d137c2cb93ae3523f25f0ac06ee

Change-Id: I9aa00bf8e150e9d2b01fbcb3753d0927d98cebeb

8 years agoAdding initial files to repository 71/54871/1
Pawel Sikorski [Fri, 18 Dec 2015 09:55:13 +0000 (10:55 +0100)]
Adding initial files to repository

Adding:
* LICENSE, AUTHORS
* check-coding-style tool
* packaging spec file (now empty)

Change-Id: I44e5db00d6c7c01c7849dfa1e42ad569640a5e82

8 years agoInitial empty repository master
KyungMi Lee [Thu, 17 Dec 2015 23:18:08 +0000 (15:18 -0800)]
Initial empty repository