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>
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>
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
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
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>
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
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>
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
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
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
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>
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
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
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
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
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
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
Tomasz Iwanek [Wed, 17 Aug 2016 08:36:13 +0000 (10:36 +0200)]
Remove TODO
These tests will not be added.
Change-Id: I801c625b2328763ac2538a754e11977b37cfaf79
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>
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>
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>
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>
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>
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>
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
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>
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>
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
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
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>
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>
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>
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
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
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>
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
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
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>
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>
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>
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
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>
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
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>
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>
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
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>
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>
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>
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>
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
Tomasz Iwanek [Fri, 13 May 2016 12:25:11 +0000 (14:25 +0200)]
Smoke test for mount install
Change-Id: I960560572413ba780a6b0c08f39ab25d6344a375
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>
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>
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>
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
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
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
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
Tomasz Iwanek [Thu, 10 Mar 2016 11:58:31 +0000 (12:58 +0100)]
Clear data smoke test
Change-Id: I7f3fc5c333c247b9c9fcd64b172bd2a9acc89b94
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
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>
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
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
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
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
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
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>
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
Tomasz Iwanek [Fri, 4 Mar 2016 14:56:34 +0000 (15:56 +0100)]
Manifest test refactoring
Change-Id: I204cfcd2a7101070872ee778f4ce62f0cac12626
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
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
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
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
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>
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
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>
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
Tomasz Iwanek [Mon, 29 Feb 2016 12:48:06 +0000 (13:48 +0100)]
Remove testcase 'AuthorElement_Href_Invalid'
Change-Id: Ib0654697f0e0450ddecc8b5d0f0a3bfd6669a9fc
Tomasz Iwanek [Fri, 26 Feb 2016 13:47:31 +0000 (14:47 +0100)]
Manifest tests - profile element
Change-Id: I64c7978ce12420fd200e520a8e72472851221903
Tomasz Iwanek [Fri, 26 Feb 2016 13:26:59 +0000 (14:26 +0100)]
Manifest tests - privileges element
Change-Id: I94344c531c1c0ec63679bef222b11ec2ef3f0b00
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
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
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
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
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>
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>
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
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
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
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>
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>
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
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
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
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>
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>
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
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
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>