platform/core/appfw/tpk-backend.git
7 years agoRemove tmpdir when failed to getting icon info 48/108848/1
Sangyoon Jang [Fri, 6 Jan 2017 04:58:19 +0000 (13:58 +0900)]
Remove tmpdir when failed to getting icon info

Change-Id: I809ef4c74ef15e2f87361b0020686b327e79519f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix smoke test 80/108480/1 accepted/tizen/3.0/common/20170109.083923 accepted/tizen/3.0/ivi/20170106.094959 accepted/tizen/3.0/mobile/20170106.094801 accepted/tizen/3.0/tv/20170106.094902 accepted/tizen/3.0/wearable/20170106.094930 accepted/tizen/common/20170110.085236 accepted/tizen/ivi/20170106.103655 accepted/tizen/mobile/20170106.103457 accepted/tizen/tv/20170106.103542 accepted/tizen/wearable/20170106.103619 submit/tizen/20170105.051706 submit/tizen_3.0/20170105.051635
Sangyoon Jang [Wed, 4 Jan 2017 11:56:58 +0000 (20:56 +0900)]
Fix smoke test

Check gid of cache dir is system_share.

Change-Id: Ia09306b6bd71ea83a2f8744f7ab44bbe00424d4a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix tpk lib to extract manifest and icon only 74/108474/2
Sangyoon Jang [Wed, 4 Jan 2017 11:23:25 +0000 (20:23 +0900)]
Fix tpk lib to extract manifest and icon only

Extracting shared/res dir can cause memory issue.
Instead of extracting shared/res dir, tpk lib will find icon file from
manifest and extract icon file only.

Change-Id: I18750638a18a4451d02bd3bdbfda859f49d4c5d5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRemove codes which refers deleted attribute 34/107034/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.121827 accepted/tizen/3.0.m2/tv/20170104.122604 accepted/tizen/3.0.m2/wearable/20170104.122919 accepted/tizen/3.0/common/20161227.181335 accepted/tizen/3.0/ivi/20161227.141650 accepted/tizen/3.0/mobile/20161227.141455 accepted/tizen/3.0/tv/20161227.141529 accepted/tizen/3.0/wearable/20161227.141628 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161226.101740
Junghyun Yeon [Mon, 26 Dec 2016 07:32:30 +0000 (16:32 +0900)]
Remove codes which refers deleted attribute

Related changes:
[pkgmgr-info] : https://review.tizen.org/gerrit/107032
[app-installers] : https://review.tizen.org/gerrit/107033
[wgt-backend] : https://review.tizen.org/gerrit/107035

Change-Id: Ie39dd87bbf51d3c9a07706b2a7f0110f32e69c76
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRemove creating symlink of executable file 30/106830/2
Sangyoon Jang [Fri, 23 Dec 2016 07:27:08 +0000 (16:27 +0900)]
Remove creating symlink of executable file

Tpk package doesn't need symlink of executable file.

Change-Id: I2b10b31440add2f8ab00e743da8b7502130981b5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix smoketest 19/106819/3
Sangyoon Jang [Fri, 23 Dec 2016 07:03:05 +0000 (16:03 +0900)]
Fix smoketest

Smoketest should test both global/local case.
This patch make smoketest can test global/local test, but test only
global case because of current platform policy.
It should be test local case also later.

Change-Id: I160009196d8f7997fe91ebd2d8ab0d653b2da347
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRemove cleardata feature from backend 03/106603/4 accepted/tizen/3.0/common/20161228.071514 accepted/tizen/3.0/ivi/20161226.030249 accepted/tizen/3.0/mobile/20161226.030107 accepted/tizen/3.0/tv/20161226.030157 accepted/tizen/3.0/wearable/20161226.030224 submit/tizen_3.0/20161223.043050
Junghyun Yeon [Thu, 22 Dec 2016 07:15:54 +0000 (16:15 +0900)]
Remove cleardata feature from backend

- Cleardata will be handled by pkg_cleardata
so remove features reated with it

Related changes:
[pkgmgr-server] : https://review.tizen.org/gerrit/106486
[pkgmgr-tool] : https://review.tizen.org/gerrit/106485
[app-installers] : https://review.tizen.org/gerrit/105691
[wgt-backend] : https://review.tizen.org/gerrit/106601

Change-Id: Iaa0ebe8786a4910ff76422f0935089e55574ff82
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agomove the behavior of StepGrantPermission step to StepChangeOwnershipAndPermission 61/103361/3 accepted/tizen/3.0/common/20161212.060241 accepted/tizen/3.0/ivi/20161212.022737 accepted/tizen/3.0/mobile/20161212.022418 accepted/tizen/3.0/tv/20161212.022632 accepted/tizen/3.0/wearable/20161212.022706 submit/tizen_3.0/20161209.072525
jongmyeongko [Thu, 8 Dec 2016 06:29:24 +0000 (15:29 +0900)]
move the behavior of StepGrantPermission step to StepChangeOwnershipAndPermission

Submit with :
https://review.tizen.org/gerrit/#/c/103359/
https://review.tizen.org/gerrit/#/c/103512/

Change-Id: Ideb73e83f2f4c92bd5a33e06242f9c73a873eb62
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoCreation for symbolic link will not skipped 57/102257/4
Junghyun Yeon [Mon, 5 Dec 2016 08:45:51 +0000 (17:45 +0900)]
Creation for symbolic link will not skipped
even if request mode is manifestdirect-operations

Change-Id: I14362452d05c4b1d581c77460aebfd991d1b19e4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agogrant 'x' permission to app_root directory 27/103227/2 accepted/tizen/3.0/common/20161209.094815 accepted/tizen/3.0/ivi/20161209.001943 accepted/tizen/3.0/mobile/20161209.001849 accepted/tizen/3.0/tv/20161209.001920 accepted/tizen/3.0/wearable/20161209.001931 submit/tizen_3.0/20161208.065808
jongmyeongko [Wed, 7 Dec 2016 15:46:13 +0000 (00:46 +0900)]
grant 'x' permission to app_root directory

Change-Id: Id4785d68cfd12398b61110093fa308217f2875d2
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdjust to change of support ambient 64/103164/1 accepted/tizen/3.0/common/20161208.153342 accepted/tizen/3.0/ivi/20161208.062723 accepted/tizen/3.0/mobile/20161208.062401 accepted/tizen/3.0/tv/20161208.062549 accepted/tizen/3.0/wearable/20161208.062633 submit/tizen_3.0/20161207.072901
Sangyoon Jang [Wed, 7 Dec 2016 11:25:04 +0000 (20:25 +0900)]
Adjust to change of support ambient

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

Change-Id: I2417cabc6cf6af7d2097abf11e950dba2ae15902
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoCreation of external appdata will not performed 00/102300/3 accepted/tizen/3.0/common/20161207.194739 accepted/tizen/3.0/ivi/20161207.012953 accepted/tizen/3.0/mobile/20161207.012901 accepted/tizen/3.0/tv/20161207.012917 accepted/tizen/3.0/wearable/20161207.012934 submit/tizen_3.0/20161206.101358
Junghyun Yeon [Mon, 5 Dec 2016 09:55:03 +0000 (18:55 +0900)]
Creation of external appdata will not performed
when there are no external path available

Change-Id: I0e8e162bd3f80be36b434adc8cb113e067fea799
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoadd missing steps in partial case. 96/102396/1
jongmyeongko [Mon, 5 Dec 2016 13:34:32 +0000 (22:34 +0900)]
add missing steps in partial case.

Change-Id: If8b2ef978475234724590cfe1bc7ff73ebfad2cc
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix smoke test 17/101417/1 accepted/tizen/3.0/common/20161206.125810 accepted/tizen/3.0/ivi/20161206.000409 accepted/tizen/3.0/mobile/20161206.000224 accepted/tizen/3.0/tv/20161206.000332 accepted/tizen/3.0/wearable/20161206.000351 submit/tizen_3.0/20161205.120256
Sangyoon Jang [Thu, 1 Dec 2016 06:26:50 +0000 (15:26 +0900)]
Fix smoke test

Now gid of data, shared/data dir is system_share.

Change-Id: I85a3d4f71571b00972763d40dc0cce44821ee9c3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdd new steps: ReadonlyUpdateInstall, ReadonlyUpdateUninstall 80/97080/8 accepted/tizen/3.0/common/20161203.012111 accepted/tizen/3.0/ivi/20161201.075317 accepted/tizen/3.0/mobile/20161201.075032 accepted/tizen/3.0/tv/20161201.075159 accepted/tizen/3.0/wearable/20161201.075235 submit/tizen_3.0/20161130.132739 submit/tizen_3.0/20161201.024602
Sangyoon Jang [Fri, 11 Nov 2016 06:16:12 +0000 (15:16 +0900)]
Add new steps: ReadonlyUpdateInstall, ReadonlyUpdateUninstall

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

Change-Id: I36c1fb3e4a22fc9fc0e3d53f73a678c591b923c1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoapply new features 08/100908/3
jongmyeongko [Mon, 28 Nov 2016 16:57:03 +0000 (01:57 +0900)]
apply new features

- force-clean
- partial install/update

Requires :
https://review.tizen.org/gerrit/#/c/100625/
https://review.tizen.org/gerrit/#/c/100323/
https://review.tizen.org/gerrit/#/c/100891/

Change-Id: Ia5961f7f8704e1cf45181a8848a0cbb0900093c7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoimplement partial install/upgrade feature on writable space (such as /opt) 24/100324/3
jongmyeongko [Sun, 27 Nov 2016 11:04:11 +0000 (20:04 +0900)]
implement partial install/upgrade feature on writable space (such as /opt)

Change-Id: I6c684115b7f880f97b6d663833461202fa87952e
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoStop using pkgdir-tool for directory operation 64/100364/1
Junghyun Yeon [Mon, 28 Nov 2016 02:41:38 +0000 (11:41 +0900)]
Stop using pkgdir-tool for directory operation

- Backend has cap itself so another tool dedicated to directory operation
is no more needed
- Adjust order of including header for coding style

Change-Id: Ie86d253303e1a013400ba6dcc5b5e38bae2f2c3d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix for MountUpdateMode_Rollback_Hybrid 25/98725/6 accepted/tizen/3.0/common/20161125.101733 accepted/tizen/3.0/ivi/20161125.081916 accepted/tizen/3.0/mobile/20161125.081412 accepted/tizen/3.0/tv/20161125.081721 accepted/tizen/3.0/wearable/20161125.081828 submit/tizen_3.0/20161124.130849
Bartlomiej Kunikowski [Fri, 18 Nov 2016 10:43:39 +0000 (11:43 +0100)]
Fix for MountUpdateMode_Rollback_Hybrid

The backup directory was not removed in undo for StepTpkPreparePackageDirectory.

Verify:
 # su - app_fw
 $ /usr/bin/wgt-backend-ut/smoke-test

Submit together:
 - https://review.tizen.org/gerrit/#/c/98724/

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

Change-Id: Ief869db12206cc7c05424ab56848aa2089b86788
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix for MountInstallationMode_Rollback_Hybrid 98/97898/5
Bartlomiej Kunikowski [Thu, 20 Oct 2016 08:31:04 +0000 (10:31 +0200)]
Fix for MountInstallationMode_Rollback_Hybrid

Submit together :
 - https://review.tizen.org/gerrit/#/c/97900/

To verify run wgt-backend smoke test

Change-Id: Ifb5412896b5e898547f05101f54021b186c11408

7 years agoapply extended concept of package's attribute. 16/99116/5
jongmyeongko [Tue, 22 Nov 2016 02:40:52 +0000 (11:40 +0900)]
apply extended concept of package's attribute.

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

Change-Id: I56153446d3a277b5342cebb24422800247cbfd10
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoImplement tpk backend library 43/97443/12 accepted/tizen/3.0/common/20161124.181943 accepted/tizen/3.0/ivi/20161124.030511 accepted/tizen/3.0/mobile/20161124.030352 accepted/tizen/3.0/tv/20161124.030425 accepted/tizen/3.0/wearable/20161124.030449 accepted/tizen/common/20161125.095050 accepted/tizen/ivi/20161125.004128 accepted/tizen/mobile/20161125.003522 accepted/tizen/tv/20161125.003855 accepted/tizen/wearable/20161125.004007 submit/tizen/20161124.000829 submit/tizen_3.0/20161123.114701
Sangyoon Jang [Tue, 7 Jun 2016 11:12:53 +0000 (20:12 +0900)]
Implement tpk backend library

This backend library is for getting package information from file.
The functions are called by dlsym from pkgmgr_client api.
(Refer to: https://review.tizen.org/gerrit/73286)

Change-Id: I81d302854c73d1975bc3ce3e3bc5d13b2089812b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdd StepCheckInstallable 77/98477/1 accepted/tizen/3.0/common/20161118.192956 accepted/tizen/3.0/ivi/20161118.004148 accepted/tizen/3.0/mobile/20161118.004011 accepted/tizen/3.0/tv/20161118.004104 accepted/tizen/3.0/wearable/20161118.004127 submit/tizen_3.0/20161117.054138
Sangyoon Jang [Thu, 17 Nov 2016 10:26:55 +0000 (19:26 +0900)]
Add StepCheckInstallable

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

Change-Id: Ic7e4a155528575ef16d4d057fc208c5c84fdd1d6
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix CMakeLists.txt 73/98173/2
Sangyoon Jang [Wed, 16 Nov 2016 10:30:52 +0000 (19:30 +0900)]
Fix CMakeLists.txt

To make extendible for adding source & header files.

Change-Id: Ibfcc5a8671854391cdc64c496cfde93d6ca130c0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix memory leak 32/96032/2 accepted/tizen/3.0/common/20161114.081549 accepted/tizen/3.0/ivi/20161110.015555 accepted/tizen/3.0/mobile/20161110.015326 accepted/tizen/3.0/tv/20161110.015434 accepted/tizen/3.0/wearable/20161110.015526 submit/tizen_3.0/20161107.133644 submit/tizen_3.0_common/20161110.084657
Hwankyu Jhun [Mon, 7 Nov 2016 11:06:39 +0000 (20:06 +0900)]
Fix memory leak

Change-Id: I24df29fa7e14840d678af2d8da3d1f1488c28f07
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoReworking handling privileges for hybrid application 46/90546/5
Tomasz Iwanek [Fri, 30 Sep 2016 08:09:14 +0000 (10:09 +0200)]
Reworking handling privileges for hybrid application

This patch keeps single list of privileges (stored in
manifest_x) and filters privileges when registring
security rules of applications. Following changed:
 - generated platform manifest xml contains <privilege>
   tags with 'type' atttibute set to 'tpk' or 'wgt',
 - in case of absence of attribute, its default value
   is 'tpk',
 - manifest_x changes privilege type from GList of char*
   to GList of privilege_x. Structure named 'privilege_x'
   contain parsed privilege type,
 - although there is one privilege list, given the fact
   that privilege now have type, native and web privileges
   should be registered in native or web apps only.

Verification:
 - no regression in tpk/wgt smoke tests,
 - install hybrid app with native and web privileges
   and check generated manifest file for privileges,
 - install web app with privileges and check generated
   manifest file,
 - install web app without privileges and check generated
   manifest file -> default privileges should be added.

Submit together:
 - https://review.tizen.org/gerrit/#/c/90540/
 - https://review.tizen.org/gerrit/#/c/90543/
 - https://review.tizen.org/gerrit/#/c/90544/
 - https://review.tizen.org/gerrit/#/c/90546/
 - https://review.tizen.org/gerrit/#/c/90561/

Change-Id: I3cee36962fc3763636e430353cf4ebd362cbe37a

7 years agoPatch reinstall/RDS according to SDK behaviour 30/91430/3 accepted/tizen/3.0/ivi/20161028.123107 accepted/tizen/3.0/mobile/20161028.122418 accepted/tizen/3.0/tv/20161028.122639 accepted/tizen/3.0/wearable/20161028.122904 accepted/tizen/common/20161013.155647 accepted/tizen/ivi/20161014.074156 accepted/tizen/mobile/20161014.074052 accepted/tizen/tv/20161014.074117 accepted/tizen/wearable/20161014.074135 submit/tizen/20161012.122424 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082323 submit/tizen_3.0_common/20161104.104000
Tomasz Iwanek [Fri, 7 Oct 2016 08:04:20 +0000 (10:04 +0200)]
Patch reinstall/RDS according to SDK behaviour

Commit changes reinstall request argument. Now pkgid
is expected instead of path to directory. What is more,
if package manifest is not in the directory supplied by
reinstall/RDS then it will be copied from install location.

Application installer expects that SDK will put files into:
 - local installation:
   /home/$USERNAME/apps_rw/tmp/$PKGID/
 - global installation:
   /opt/apps/tmp/$PKGID/

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

Submit together:
 - https://review.tizen.org/gerrit/91430
 - https://review.tizen.org/gerrit/91431
 - https://review.tizen.org/gerrit/91432

Verification:
 - run smoke tests,
 - run reinstall from SDK,
 - run RDS from SDK.

Change-Id: I20bf9195dfa17dc449a9ba790308eef47bc126b5

7 years agoFix TpkAppQueryInterface 65/90065/6
Sangyoon Jang [Fri, 30 Sep 2016 08:07:00 +0000 (17:07 +0900)]
Fix TpkAppQueryInterface

Don't parse again argv, argc.
They are already parsed by PkgMgrInterface.

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

Change-Id: Ieb8b9468eb60d21561f6f3e54b79dbc1bd1c81a3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix ValidatePackageFS in smoke tests 23/88123/2
Tomasz Iwanek [Tue, 13 Sep 2016 12:11:24 +0000 (14:11 +0200)]
Fix ValidatePackageFS in smoke tests

Run smoke tests to verify.

Change-Id: I864e76843a9272a69d4d90a13113f3a50c7d10fc

7 years agoremove the profile macro in the spec file. it's not used. 57/88457/1 accepted/tizen/3.0/ivi/20161011.065040 accepted/tizen/3.0/mobile/20161015.034254 accepted/tizen/3.0/tv/20161016.005856 accepted/tizen/3.0/wearable/20161015.084321 accepted/tizen/common/20160920.131840 accepted/tizen/ivi/20160920.231600 accepted/tizen/mobile/20160920.231502 accepted/tizen/tv/20160920.231525 accepted/tizen/wearable/20160920.231542 submit/tizen/20160920.011443 submit/tizen_3.0_ivi/20161010.000007 submit/tizen_3.0_mobile/20161015.000007 submit/tizen_3.0_tv/20161015.000006 submit/tizen_3.0_wearable/20161015.000006
jongmyeongko [Mon, 19 Sep 2016 07:48:02 +0000 (16:48 +0900)]
remove the profile macro in the spec file. it's not used.

Change-Id: I6312e20baddc46150f4c902cb1ec6b305c090f9f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix change owner for recovery mode 96/87796/3
Bartlomiej Kunikowski [Fri, 9 Sep 2016 09:35:20 +0000 (11:35 +0200)]
Fix change owner for recovery mode

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

Change-Id: If9b3eacd5fbbcdb8232df8d93ff5e16f20eb8d0c

7 years agoAdd package file ownership checking to smoke tests 58/87758/3
Bartlomiej Kunikowski [Fri, 9 Sep 2016 09:18:05 +0000 (11:18 +0200)]
Add package file ownership checking to smoke tests

All tests passed after making fixes:
 - https://review.tizen.org/gerrit/#/c/87795/
 - https://review.tizen.org/gerrit/#/c/87796/

Change-Id: Id4485dadbec220ed8dcb7e5beedefb48ca5f2be6

7 years agoSmoke tests for TEP 94/87494/3
Tomasz Iwanek [Wed, 7 Sep 2016 14:11:44 +0000 (16:11 +0200)]
Smoke tests for TEP

Run new tests to verify.

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

Change-Id: Ie6a24c2e90b8a762d3d71356f4ba3cacecc11cbb

7 years agoadd StepConvertXml for manifestdirectinstall 46/86846/6 accepted/tizen/common/20160909.115039 accepted/tizen/ivi/20160909.122422 accepted/tizen/mobile/20160909.122328 accepted/tizen/tv/20160909.122345 accepted/tizen/wearable/20160909.122404 submit/tizen/20160909.054902 submit/tizen/20160909.060412
Junghyun Yeon [Mon, 5 Sep 2016 07:11:47 +0000 (16:11 +0900)]
add StepConvertXml for manifestdirectinstall

-add StepConvertXml for manifest direct install/update
to support FOTA update
-add pkg type checking routine to not to convert xml
for rpm pkgs

Related changes
[pkgmgr-tool] : https://review.tizen.org/gerrit/#/c/83327/
[app-installers] : https://review.tizen.org/gerrit/#/c/86789/
[wgt-backend] : https://review.tizen.org/gerrit/#/c/87472/

Change-Id: Icd114c20673c65285287957ef73cf607b629a67d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRecovery mode for mount install and mount update 40/86740/1
Tomasz Iwanek [Fri, 2 Sep 2016 11:41:02 +0000 (13:41 +0200)]
Recovery mode for mount install and mount update

Recovery mode requires mounting zip package.
Signature files  which needs to be read in next
step are within zip package.

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

Change-Id: Ifeb808d5e23a2b607a88dde01d5d252d5bb64425

7 years agoSet correct exec label for smoke tests 07/86307/1
Tomasz Iwanek [Wed, 31 Aug 2016 09:46:28 +0000 (11:46 +0200)]
Set correct exec label for smoke tests

Otherwise, running from shell gives
"System::Privileged" instead of "System".

To verify run:
 $ usermod -s /bin/bash app_fw
 $ chsmack -a _ /etc/passwd
 $ su - app_fw
 $ /usr/bin/tpk-backend-ut/smoke_test

Change-Id: I9d099c94f5b2d77d55d64063118a3f64a7c80c37

7 years agoForce uninstall for external storage packages 79/86079/2
Bartlomiej Kunikowski [Tue, 30 Aug 2016 11:14:17 +0000 (13:14 +0200)]
Force uninstall for external storage packages

Now errors from StepAcquireExternalStorage are ignored in uninstall mode
by using StepOptionalAcquireExternalStorage instead of old step.

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

Change-Id: I1c6d7e010077e2f1dfdad0a73696fe0e8f77e16c

7 years agoFix tpk reinstall mode signature checking 93/85693/2
Tomasz Iwanek [Fri, 26 Aug 2016 09:32:56 +0000 (11:32 +0200)]
Fix tpk reinstall mode signature checking

Submit together:
 - https://review.tizen.org/gerrit/#/c/85692/
 - https://review.tizen.org/gerrit/#/c/85693/

Change-Id: I93d81e0f9e936c094e38181e09e0d196acd23b41

7 years agoStepTpkRecoverSignature 98/84598/2 accepted/tizen/common/20160829.135942 accepted/tizen/common/20160830.150151 accepted/tizen/ivi/20160830.061219 accepted/tizen/mobile/20160830.060943 accepted/tizen/tv/20160830.061048 accepted/tizen/wearable/20160830.061133 submit/tizen/20160829.010716 submit/tizen/20160830.010724
Tomasz Iwanek [Fri, 19 Aug 2016 10:28:17 +0000 (12:28 +0200)]
StepTpkRecoverSignature

To verify, run test:
 app_fw$ /usr/bin/tpk-backend-ut/smoke-test --gtest_filter=SmokeTest.RecoveryMode_Tpk_Update

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

Change-Id: Ia6190c712fd89ef63d89d6d32f4b67b8f83813d2

7 years agoUser 'app_fw' for smoke tests 64/84564/3
Tomasz Iwanek [Wed, 17 Aug 2016 13:31:04 +0000 (15:31 +0200)]
User 'app_fw' for smoke tests

To verify, run:
 app_fw@localhost:~$ /usr/bin/tpk-backend-ut/smoke-test

One fail expected: 'SmokeTest.RecoveryMode_Tpk_Update' (on second run)
This will be fixed separately.

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

Change-Id: I346825789d0f00279f3157bb8098beaae8818d41

7 years agoRemove TODO 98/84198/1
Tomasz Iwanek [Wed, 17 Aug 2016 08:36:13 +0000 (10:36 +0200)]
Remove TODO

These tests will not be added.

Change-Id: I801c625b2328763ac2538a754e11977b37cfaf79

7 years agosymlink control for read-only files of global app. 03/81503/11 accepted/tizen/common/20160817.133226 accepted/tizen/common/20160818.144506 accepted/tizen/ivi/20160819.063348 accepted/tizen/mobile/20160819.063206 accepted/tizen/tv/20160819.063330 accepted/tizen/wearable/20160819.063313 submit/tizen/20160817.084623 submit/tizen/20160818.060816
jongmyeongko [Tue, 26 Jul 2016 12:20:52 +0000 (21:20 +0900)]
symlink control for read-only files of global app.

this is for new concept to support legacy app_path
for backward compatibility.

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

Change-Id: Iaa67c73e07dc49351866efbf89da864d31586905
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agotpk/wgt backend will run as system session 87/80787/15 accepted/tizen/common/20160812.140734 accepted/tizen/ivi/20160815.233243 accepted/tizen/mobile/20160815.233110 accepted/tizen/tv/20160815.233201 accepted/tizen/wearable/20160815.233221 submit/tizen/20160811.013634 submit/tizen/20160811.062803 submit/tizen/20160812.053402
Junghyun Yeon [Wed, 20 Jul 2016 07:49:32 +0000 (16:49 +0900)]
tpk/wgt backend will run as system session

Related changes
[slp-pkgmgr] https://review.tizen.org/gerrit/#/c/80764/
[pkgmgr-server] https://review.tizen.org/gerrit/#/c/78205/
[app-installers] https://review.tizen.org/gerrit/#/c/78206/
[wgt-backend] https://review.tizen.org/gerrit/#/c/81099/

Change-Id: I8170e2058b97357756847d6dc2cf1e7346345d4b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd StepAdjustInstallLocation 47/83447/2
Sangyoon Jang [Thu, 11 Aug 2016 03:19:17 +0000 (12:19 +0900)]
Add StepAdjustInstallLocation

This step adjusts install location for 3rd party(Public privilege level)
package. 3rd party packages cannot set install location by itself, so
installer set it as 'auto' by force.

Change-Id: I2608741c0714c336b72489bc453224c46aa70f90
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdjust to change in StepAcquireExternalStorage 99/83299/1
Sangyoon Jang [Wed, 10 Aug 2016 05:12:49 +0000 (14:12 +0900)]
Adjust to change in StepAcquireExternalStorage

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

Change-Id: Ied21bce58708d558c0b1cce52f4cca230cf19821
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agomodify smoke-test setup for consideration of user-db change. 00/83000/1 accepted/tizen/common/20160809.183911 accepted/tizen/ivi/20160809.232605 accepted/tizen/mobile/20160809.232335 accepted/tizen/tv/20160809.232454 accepted/tizen/wearable/20160809.232700 submit/tizen/20160809.011327 submit/tizen/20160809.051427
jongmyeongko [Mon, 8 Aug 2016 13:50:00 +0000 (22:50 +0900)]
modify smoke-test setup for consideration of user-db change.

Change-Id: I4d5d92ecdfc93b079dd7ce6f1a2b16c5b316f343
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agocheck null value of extra icon path and, 53/82853/1
jongmyeongko [Mon, 8 Aug 2016 07:20:48 +0000 (16:20 +0900)]
check null value of extra icon path and,

remove unit-test code for extra icon path.

Change-Id: I3b164d3348bf3b695ad73a4b556209cc7df42f8b
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix preload request for wgt 97/82497/2
Tomasz Iwanek [Wed, 3 Aug 2016 11:57:59 +0000 (13:57 +0200)]
Fix preload request for wgt

This commit should allow to install preload wgt package with command:
 - wgt-backend --preload -i $package

Submit together:
 - https://review.tizen.org/gerrit/82424
 - https://review.tizen.org/gerrit/82496
 - https://review.tizen.org/gerrit/82497

Change-Id: Ic0926ebb16e725e1c1304394acfac559c57aa95c

7 years agoMark exported API with macro 34/64834/4 accepted/tizen/common/20160803.193133 accepted/tizen/ivi/20160804.080745 accepted/tizen/mobile/20160804.080836 accepted/tizen/tv/20160804.080702 accepted/tizen/wearable/20160804.080508 submit/tizen/20160803.012753
Slava Barinov [Tue, 5 Apr 2016 09:58:19 +0000 (12:58 +0300)]
Mark exported API with macro

Switch on -fvisibility=hidden to remove non-needed symbols from resulting binary
and LTO to reduce size.
libtpk-installer.so is reduced by 40%

Change-Id: I8c75de21d6b4052835f997ebb3382174416f4f0c
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoRemove StepAcquireExternalStep from some Request type 70/76970/4
Sangyoon Jang [Tue, 28 Jun 2016 06:56:04 +0000 (15:56 +0900)]
Remove StepAcquireExternalStep from some Request type

This step does not support following steps:
 - Clear, Reinstall, Recovery, ManifestDirectInstall/Update,
   MountInstall/Update

Change-Id: I72bcf3a8b6da916b1c1f53e09124a87b796b9aad
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years ago[smoke-test] enable/disable pkg 91/82091/2
Piotr Ganicz [Thu, 28 Jul 2016 11:29:14 +0000 (13:29 +0200)]
[smoke-test] enable/disable pkg

I've made also small refactor

Change-Id: I7c8a98eee2d182a69b4d32fd3e62b102e94e5183

8 years agoReorder steps for delta update for external installation 78/80278/5
Tomasz Iwanek [Fri, 15 Jul 2016 08:14:11 +0000 (10:14 +0200)]
Reorder steps for delta update for external installation

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

To verify, check that delta update mode works for external storage

Change-Id: I5e52418755d4f254c449342df67c446a11eb8aac

8 years agosupport of legacy app directories. 23/80323/5 accepted/tizen/common/20160722.135225 accepted/tizen/ivi/20160724.042108 accepted/tizen/mobile/20160724.042011 accepted/tizen/tv/20160724.042041 accepted/tizen/wearable/20160724.042055 submit/tizen/20160722.091303
jongmyeongko [Sat, 16 Jul 2016 08:57:07 +0000 (17:57 +0900)]
support of legacy app directories.

Requires:
        https://review.tizen.org/gerrit/#/c/80319/4

Change-Id: Ie7807b3a8ac9ccf1a27c525374907d224681cd8c
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoImplement pkg enable/disable 70/79070/3 accepted/tizen/common/20160719.171836 accepted/tizen/ivi/20160718.104404 accepted/tizen/mobile/20160718.104254 accepted/tizen/tv/20160718.104132 accepted/tizen/wearable/20160718.104313 submit/tizen/20160718.020809
Junghyun Yeon [Fri, 8 Jul 2016 05:27:18 +0000 (14:27 +0900)]
Implement pkg enable/disable

Related changes
[pkgmgr-tool] https://review.tizen.org/gerrit/78916
[slp-pkgmgr] https://review.tizen.org/gerrit/78917
[pkgmgr-server] https://review.tizen.org/gerrit/78918
[app-installers] https://review.tizen.org/gerrit/78919

Change-Id: Ia991ce2e270bfb235b6191bf9ce05384d65e7c26
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoapply new error code 34/77334/1 accepted/tizen/common/20160703.130832 accepted/tizen/ivi/20160701.034211 accepted/tizen/mobile/20160701.034344 accepted/tizen/tv/20160701.034113 accepted/tizen/wearable/20160701.034239 submit/tizen/20160630.141237 submit/tizen_common/20160701.180000
jongmyeongko [Wed, 29 Jun 2016 10:54:27 +0000 (19:54 +0900)]
apply new error code

Change-Id: Iebeb0400aa4874fd3e30d6f5e0134c573a283f6f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoSplit API in pkgmgr_registration.h 08/75108/4 accepted/tizen/common/20160624.133940 accepted/tizen/ivi/20160624.064659 accepted/tizen/mobile/20160624.064600 accepted/tizen/tv/20160624.064516 accepted/tizen/wearable/20160624.064719 submit/tizen/20160624.022316
Tomasz Iwanek [Thu, 16 Jun 2016 12:45:45 +0000 (14:45 +0200)]
Split API in pkgmgr_registration.h

Submit together:
 - https://review.tizen.org/gerrit/75107
 - https://review.tizen.org/gerrit/75108
 - https://review.tizen.org/gerrit/75109

Change-Id: I822e08536ebb717d3cdaad5e201e0fb44b4fa4cf

8 years agoRename backup_paths.h to paths.h 97/74297/5
Tomasz Iwanek [Mon, 13 Jun 2016 14:05:32 +0000 (16:05 +0200)]
Rename backup_paths.h to paths.h

Submit together:
 - https://review.tizen.org/gerrit/74296
 - https://review.tizen.org/gerrit/74297
 - https://review.tizen.org/gerrit/74298

Change-Id: I41bf88d52007fba973fc5fd7190301d035c90dc1

8 years agogrant User label to tpk-backend 77/75977/1 accepted/tizen/common/20160622.150024 accepted/tizen/ivi/20160623.122224 accepted/tizen/mobile/20160623.122133 accepted/tizen/tv/20160623.122152 accepted/tizen/wearable/20160623.122208 submit/tizen/20160622.091102
jongmyeongko [Wed, 22 Jun 2016 08:50:54 +0000 (17:50 +0900)]
grant User label to tpk-backend

Change-Id: I762344b80db5db76bb0ef78053f5f352f9c068e8
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoNew use of tep steps 93/74293/4 accepted/tizen/common/20160621.184518 accepted/tizen/ivi/20160622.093649 accepted/tizen/mobile/20160622.093539 accepted/tizen/tv/20160622.093608 accepted/tizen/wearable/20160622.093628 submit/tizen/20160621.063045
Tomasz Iwanek [Mon, 13 Jun 2016 13:35:06 +0000 (15:35 +0200)]
New use of tep steps

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

Submit together:
 - https://review.tizen.org/gerrit/#/c/74068/
 - https://review.tizen.org/gerrit/#/c/74293/
 - https://review.tizen.org/gerrit/#/c/74294/

Change-Id: Ie6666a1ceff178abcc639e2bcd04299586f547df

8 years agoHandling external appdata directories 06/74806/4
Tomasz Iwanek [Tue, 14 Jun 2016 08:55:48 +0000 (10:55 +0200)]
Handling external appdata directories

Submit together:
 - https://review.tizen.org/gerrit/74805
 - https://review.tizen.org/gerrit/74806

Change-Id: Ib352dcd4bf5990f729bc1157c612db4906e121c3

8 years agoapply PIE option 70/75070/3 accepted/tizen/common/20160620.163126 accepted/tizen/ivi/20160617.083634 accepted/tizen/mobile/20160617.083459 accepted/tizen/tv/20160617.083330 accepted/tizen/wearable/20160617.083659 submit/tizen/20160616.134250
jongmyeongko [Thu, 16 Jun 2016 11:34:45 +0000 (20:34 +0900)]
apply PIE option

Change-Id: If43a9e8180109440984ec5d2982b7c908cc2e2bb
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoAdd StepCheckRestriction 63/74163/3 accepted/tizen/common/20160616.151527 accepted/tizen/ivi/20160616.002903 accepted/tizen/mobile/20160616.002833 accepted/tizen/tv/20160616.002815 accepted/tizen/wearable/20160616.002725 submit/tizen/20160615.073423
Sangyoon Jang [Mon, 13 Jun 2016 04:56:01 +0000 (13:56 +0900)]
Add StepCheckRestriction

Added at install, uninstall, reinstall, move, mount install.

Change-Id: I07a122cef2ed349e4b780eac6832b1fe64be230d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoset label to prevent execution by non-system application. 94/74194/3
jongmyeongko [Mon, 13 Jun 2016 06:51:49 +0000 (15:51 +0900)]
set label to prevent execution by non-system application.

Change-Id: I400631505776464ee7cc5125d7fa151a3741659c
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoRelabel files in move request 43/74043/1
Tomasz Iwanek [Fri, 10 Jun 2016 12:04:23 +0000 (14:04 +0200)]
Relabel files in move request

Verify by:
  tpk-backend -i ${package_with_external_installation_preference}
  tpk-backend -m ${pkgid} -m 2

Files when moved from mounted loop device to internal memory
should aquire correct smack label.

Change-Id: I77c175e1576c987e47b35663b0a118111089a1c9

8 years agoImplement pkg move 18/72618/6 accepted/tizen/common/20160613.144706 accepted/tizen/ivi/20160610.114456 accepted/tizen/mobile/20160610.114403 accepted/tizen/tv/20160610.114424 accepted/tizen/wearable/20160610.114442 submit/tizen/20160610.015635
Junghyun Yeon [Thu, 2 Jun 2016 00:36:28 +0000 (09:36 +0900)]
Implement pkg move

Related change : app-installers
https://review.tizen.org/gerrit/#/c/72616/

Change-Id: I445ce9b2191952face7a21a3a39e542c5a15796c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoSTEP_NAME marco 28/72828/4 accepted/tizen/common/20160610.175902 accepted/tizen/ivi/20160609.091413 accepted/tizen/mobile/20160609.091548 accepted/tizen/tv/20160609.091351 accepted/tizen/wearable/20160609.091329 submit/tizen/20160609.010102
Tomasz Iwanek [Thu, 2 Jun 2016 12:58:21 +0000 (14:58 +0200)]
STEP_NAME marco

Adding marco to print name of step that failed
in AppInstaller class

Following must be submitted together:
 - https://review.tizen.org/gerrit/72827
 - https://review.tizen.org/gerrit/72828
 - https://review.tizen.org/gerrit/72829

Change-Id: I96af51d6c924669ace683338097c9b8c3d3b40eb

8 years agoskip granting permissions in case of some paths, 15/72415/7 accepted/tizen/common/20160606.141601 accepted/tizen/ivi/20160602.230740 accepted/tizen/mobile/20160602.230721 accepted/tizen/tv/20160602.230703 accepted/tizen/wearable/20160602.230638 submit/tizen/20160602.040935
jongmyeongko [Wed, 1 Jun 2016 01:41:47 +0000 (10:41 +0900)]
skip granting permissions in case of some paths,

which are related to mount or directories installer create.

this fix mount-install and external-install failure.

Change-Id: I435a6c8d781b2ddd90f83852ab46eb9fd1f35af7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoAdd StepCheckTizenVersion 21/71621/3 accepted/tizen/common/20160602.140056 accepted/tizen/ivi/20160602.022856 accepted/tizen/mobile/20160602.023028 accepted/tizen/tv/20160602.022604 accepted/tizen/wearable/20160602.022744 submit/tizen/20160531.024853
Sangyoon Jang [Thu, 26 May 2016 02:48:03 +0000 (11:48 +0900)]
Add StepCheckTizenVersion

Change-Id: Ia6ac14aab88bf63562e34d50d73fb16e0772e9a3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoExternal installation 78/61678/12
Tomasz Iwanek [Wed, 9 Mar 2016 12:22:08 +0000 (13:22 +0100)]
External installation

This patch implements installation of package in external sd card storage.
Tpk and wgt applications may declare preference of being installed on external
storage. If so and space requirement is satisified then their resource directory
is installed in sd card with use of app2sd API.

Following patchsets should be submitted together:
 - https://review.tizen.org/gerrit/61678
 - https://review.tizen.org/gerrit/61679
 - https://review.tizen.org/gerrit/61680

Verify by:
 - running smoke tests,
 - running installation, update, deinstallation for package that prefers external
   installation (SD card must be inserted).

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

Change-Id: I7ab275d4bb668dbd41945bbb6b22b098dab53a75

8 years agoAdd csapp type to make symlink and executable permission 10/71610/3
WonYoung Choi [Thu, 26 May 2016 06:59:57 +0000 (15:59 +0900)]
Add csapp type to make symlink and executable permission

Change-Id: I8af0b2ff8bcf0b3e2a23334c3c7822b81d8a0ad7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agogrant x permission to 'lib' of app directory. 35/71735/3 accepted/tizen/common/20160527.152749 accepted/tizen/ivi/20160527.052224 accepted/tizen/mobile/20160527.051713 accepted/tizen/tv/20160527.052103 accepted/tizen/wearable/20160527.052005 submit/tizen/20160527.021556
jongmyeongko [Fri, 27 May 2016 01:57:58 +0000 (10:57 +0900)]
grant x permission to 'lib' of app directory.

Change-Id: I26658f9d326ec82fecfbc7e4f5f7bc10f77a5749
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agofix grant permission step. 16/71616/2 accepted/tizen/common/20160526.150433 accepted/tizen/ivi/20160526.105704 accepted/tizen/mobile/20160526.105605 accepted/tizen/tv/20160526.105624 accepted/tizen/wearable/20160526.105640 submit/tizen/20160526.084450
jongmyeongko [Thu, 26 May 2016 07:23:28 +0000 (16:23 +0900)]
fix grant permission step.

some contents were skipped.

Change-Id: I7f241190c8295c1a3ee0590c4188d7e99d200c7f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoGrant permission for /bin and /lib path 98/70998/5 accepted/tizen/common/20160525.160015 accepted/tizen/ivi/20160525.235204 accepted/tizen/mobile/20160525.235217 accepted/tizen/tv/20160525.235201 accepted/tizen/wearable/20160525.235137 submit/tizen/20160525.055233
Arkadiusz Szulakiewicz [Mon, 23 May 2016 14:04:31 +0000 (16:04 +0200)]
Grant permission for /bin and /lib path

Change-Id: If375ff26f58cd562ba16e12ccaa11aa5c06bebef
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoReorder DeltaSteps 29/70529/2
Piotr Ganicz [Thu, 19 May 2016 09:20:50 +0000 (11:20 +0200)]
Reorder DeltaSteps

This fix proviedes proper order of the steps in delta installer
and resolves the segmentation fault in DeltaMode_Tpk test.

Change-Id: I18290c0906e92798a6e1bbdb9843789fadf0db98

8 years agoSmoke test for mount install 12/69512/2
Tomasz Iwanek [Fri, 13 May 2016 12:25:11 +0000 (14:25 +0200)]
Smoke test for mount install

Change-Id: I960560572413ba780a6b0c08f39ab25d6344a375

8 years agoRemove unused function 27/70527/1 accepted/tizen/common/20160519.191707 accepted/tizen/ivi/20160520.003514 accepted/tizen/mobile/20160520.004054 accepted/tizen/tv/20160520.003436 accepted/tizen/wearable/20160520.003543 submit/tizen/20160519.101452
Sangyoon Jang [Thu, 19 May 2016 09:34:54 +0000 (18:34 +0900)]
Remove unused function

Change-Id: I7cb2a593aa99f6523d2f33cf56ba8c0208bdee2b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRemove blacklist feature 48/69948/1 accepted/tizen/common/20160518.125130 accepted/tizen/ivi/20160518.090809 accepted/tizen/mobile/20160518.090838 accepted/tizen/tv/20160518.090744 accepted/tizen/wearable/20160518.090730 submit/tizen/20160518.054712
Junghyun Yeon [Tue, 17 May 2016 09:45:56 +0000 (18:45 +0900)]
Remove blacklist feature

Related with changes in app-installers
https://review.tizen.org/gerrit/69947

Change-Id: I49888e3c7628f86983ea2dd628772043168780c8
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
8 years agoadd PROJECT_TAG as 'TPK_BACKEND' 84/69184/2 accepted/tizen/common/20160513.123339 accepted/tizen/ivi/20160513.004705 accepted/tizen/mobile/20160513.004733 accepted/tizen/tv/20160513.004649 accepted/tizen/wearable/20160513.004618 submit/tizen/20160512.083806
jongmyeongko [Thu, 12 May 2016 05:50:41 +0000 (14:50 +0900)]
add PROJECT_TAG as 'TPK_BACKEND'

Change-Id: I5aded8cb5707b23711b9bc5311342485842bc2db
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
8 years agoSign smoke tests 61/68961/1
Tomasz Iwanek [Tue, 10 May 2016 15:02:24 +0000 (17:02 +0200)]
Sign smoke tests

Run smoke tests:
 /usr/bin/tpk-backend-ut/smoke-test # 8/8

Change-Id: I6af9dde344f592ae771682d579cdaa7e3a8b9c56

8 years agoMount install steps 58/65758/9 accepted/tizen/common/20160505.140336 accepted/tizen/ivi/20160506.035727 accepted/tizen/mobile/20160506.035145 accepted/tizen/tv/20160506.035519 accepted/tizen/wearable/20160506.035618 submit/tizen/20160504.074553
Tomasz Iwanek [Mon, 11 Apr 2016 12:41:17 +0000 (14:41 +0200)]
Mount install steps

Mount install is run by "-w $pkgid" option.
Mount install, update mount install and deinstallation of mount-installed
package should work.

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

Change-Id: Ic2f2b3b0cbb96493e37bd871757a2f7ffc0638a1

8 years agoReorder StepUpdateTep 08/64808/4 accepted/tizen/common/20160408.184909 accepted/tizen/ivi/20160408.052510 accepted/tizen/mobile/20160408.052448 accepted/tizen/tv/20160408.052419 accepted/tizen/wearable/20160408.052434 submit/tizen/20160408.003820
Tomasz Iwanek [Tue, 5 Apr 2016 11:51:21 +0000 (13:51 +0200)]
Reorder StepUpdateTep

tep_name is passed directly in manifest_x structure during
package registration in pkgmgr_parser database.

Verify that after package update pkgmgr_parser database
still contains correct value of tep_name even if parameter
-e wasn't given in update.
(database .pkgmgr_parser.db,
 table: package_info,
 column: package_tep_name).

$ tpk-backend -i /home/owner/sample.tpk -e /home/owner/tep1
$ sqlite3 .applications/dbspace/.pkgmgr_parser.db 'select package_tep_name from package_info'
>> /home/owner/apps_rw/org.tizen.testapp/res/tep1

$ ls /home/owner/apps_rw/org.tizen.testapp/res/tep1
>> /home/owner/apps_rw/org.tizen.testapp/res/tep1

$ tpk-backend -i /home/owner/sample.tpk -e /home/owner/tep2
$ sqlite3 .applications/dbspace/.pkgmgr_parser.db 'select package_tep_name from package_info'
>> /home/owner/apps_rw/org.tizen.testapp/res/tep2

$ ls /home/owner/apps_rw/org.tizen.testapp/res/tep2
>> /home/owner/apps_rw/org.tizen.testapp/res/tep2

$ ls /home/owner/apps_rw/org.tizen.testapp/res/tep1
>> ls: cannot access /home/owner/apps_rw/org.tizen.testapp/res/tep1: No such file or directory

$ tpk-backend -i /home/owner/sample.tpk
$ sqlite3 .applications/dbspace/.pkgmgr_parser.db 'select package_tep_name from package_info'
>> /home/owner/apps_rw/org.tizen.testapp/res/tep2

$ ls /home/owner/apps_rw/org.tizen.testapp/res/tep2
>> /home/owner/apps_rw/org.tizen.testapp/res/tep2

$ ls /home/owner/apps_rw/org.tizen.testapp/res/tep1
>> ls: cannot access /home/owner/apps_rw/org.tizen.testapp/res/tep1: No such file or directory

Submit together:
  https://review.tizen.org/gerrit/64808
  https://review.tizen.org/gerrit/64809
  https://review.tizen.org/gerrit/64814

Change-Id: Ic2fa663736a38d5e6a9afdc7fd1a708b2b18e8e9

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>