platform/core/appfw/tpk-backend.git
4 years agoChange TpkAppQueryInterface's logic of clearing tmp path 65/244565/3
Ilho Kim [Tue, 22 Sep 2020 02:21:23 +0000 (11:21 +0900)]
Change TpkAppQueryInterface's logic of clearing tmp path

Extracting function can be override by child class,
So the clearing function should be overridable function

- Requires:
  [app-installers] https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/244388/

Change-Id: I588b9d3eb188b084a76c6ab2d6078690de1b7123
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix TpkAppQueryInterface when fail to get package id 10/244510/1
Ilho Kim [Mon, 21 Sep 2020 06:21:06 +0000 (15:21 +0900)]
Fix TpkAppQueryInterface when fail to get package id

The temporary file should be removed when fail to get package id

Change-Id: I28827f4210bc7af0f7a9c081e87ac1c2dee1ccc9
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoAdd recovery test for ReadonlyUpdateInstall 84/243384/3
Ilho Kim [Mon, 7 Sep 2020 01:49:05 +0000 (10:49 +0900)]
Add recovery test for ReadonlyUpdateInstall

Change-Id: Ie204fa3c61024e8703a1065be9704bc451647f19
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRelease version 1.10.12 10/243710/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.120028 accepted/tizen/6.0/unified/hotfix/20201103.050504 accepted/tizen/unified/20200911.143438 submit/tizen/20200910.044255 submit/tizen_6.0/20201029.205103 submit/tizen_6.0_hotfix/20201102.192503 submit/tizen_6.0_hotfix/20201103.114803 tizen_6.0.m2_release
Sangyoon Jang [Wed, 9 Sep 2020 08:45:19 +0000 (17:45 +0900)]
Release version 1.10.12

Changes:
 - Fix TpkArchiveInfo

Change-Id: I1d2756cabb4bd0f9f990535cb11f50188c4f82b5
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix TpkArchiveInfo 52/243552/2
Sangyoon Jang [Tue, 8 Sep 2020 05:57:31 +0000 (14:57 +0900)]
Fix TpkArchiveInfo

- Make visibility of member method as protected for extendability.
- Export tpk_archive_info.h header.

Change-Id: I3175665e52ff604ae318af8d110bb27eed240432
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRelease version 1.10.11 31/243531/1 accepted/tizen/unified/20200908.130501 submit/tizen/20200908.025700
Ilho Kim [Tue, 8 Sep 2020 02:30:23 +0000 (11:30 +0900)]
Release version 1.10.11

Changes:
 - Change to use gmock package instead of gtest
 - Fix coding rule
 - Fix extensive smoke test

Change-Id: I1bb62d40c3a9fe7919ccf8c486a078342add2373
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix extensive smoke test 14/236814/6
Ilho Kim [Mon, 22 Jun 2020 08:36:18 +0000 (17:36 +0900)]
Fix extensive smoke test

- Handle the cleanup recovery type

Change-Id: Ife8675b5509610e18431784c7a73319275a7a334
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix coding rule 23/242423/2
Junghyun Yeon [Thu, 27 Aug 2020 00:26:15 +0000 (09:26 +0900)]
Fix coding rule

Change-Id: I76a57a09f58c4f84cef4327fc2dde6676168d372
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoChange to use gmock package instead of gtest 74/239874/3
Ilho Kim [Wed, 29 Jul 2020 04:59:02 +0000 (13:59 +0900)]
Change to use gmock package instead of gtest

Change-Id: Ic5326d91b98ba9c1a17686f118e9740a229aa77b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRelease version 1.10.10 11/242111/1 accepted/tizen/unified/20200825.033235 submit/tizen/20200824.070831
Ilho Kim [Mon, 24 Aug 2020 06:51:35 +0000 (15:51 +0900)]
Release version 1.10.10

Changes:
 - Adjust a changed smoke utils header

Change-Id: I57679451db5ccead662f10317d2a87378ac99d20
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoAdjust a changed smoke utils header 71/242071/1
Ilho Kim [Mon, 24 Aug 2020 03:43:20 +0000 (12:43 +0900)]
Adjust a changed smoke utils header

Change-Id: I3d32a1d79ce98337125f242ad3d3c4264745844c
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRelease version 1.10.9 71/241971/1 submit/tizen/20200821.072757
Ilho Kim [Fri, 21 Aug 2020 07:24:12 +0000 (16:24 +0900)]
Release version 1.10.9

Changes:
 - Combine try-catch statement in recovery test
 - Add try-catch statement
 - Move test codes

Change-Id: I26fea3350deea05ab30111ecfb2123a8b63ba2a7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoMove test codes 44/241944/1
Junghyun Yeon [Fri, 21 Aug 2020 02:15:59 +0000 (11:15 +0900)]
Move test codes

Move test codes into ${src root}/test and rename it to smoke_tests.

Change-Id: If1b83fcd255f5d36e20a66e13df3974906525cba
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd try-catch statement 21/241921/1
Ilho Kim [Fri, 21 Aug 2020 01:29:07 +0000 (10:29 +0900)]
Add try-catch statement

Change-Id: I3708d06c0ddd27f421c0adfe8350f514c09468a5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoCombine try-catch statement in recovery test 68/241168/2
Ilho Kim [Tue, 18 Aug 2020 08:25:51 +0000 (17:25 +0900)]
Combine try-catch statement in recovery test

Change-Id: I8f26d8c9b714eada2537ddd2f60547aecc7c97fd
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRelease version 1.10.8 41/240641/1 accepted/tizen/unified/20200811.050446 submit/tizen/20200810.091347
Ilho Kim [Mon, 10 Aug 2020 08:14:38 +0000 (17:14 +0900)]
Release version 1.10.8

Changes:
 - Fix static analysis issue
 - Refactor recovery test
 - Allow the other options in smoke test
 - Add user request mode test for recovery test
 - Change archive info behavior

Change-Id: I5b96247bea725db8c9082ad6f07804658c52c82f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoChange archive info behavior 38/240538/2
Junghyun Yeon [Fri, 7 Aug 2020 07:35:13 +0000 (16:35 +0900)]
Change archive info behavior

Change archive info to not fail if there are icon file exists but empty

Change-Id: I78c61371e1fca569ed7a1e9e33ad26670986cee6
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd user request mode test for recovery test 85/239585/4
Ilho Kim [Tue, 28 Jul 2020 02:22:19 +0000 (11:22 +0900)]
Add user request mode test for recovery test

Recovery test can run user request mode With additional option '--user-request'

Change-Id: I0759d9cfc76dc2231e194a7c892c4814d114cf0a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoAllow the other options in smoke test 30/239530/4
Ilho Kim [Mon, 27 Jul 2020 10:38:45 +0000 (19:38 +0900)]
Allow the other options in smoke test

ex) --user-request for user mode test

Change-Id: I0c65b210db7d0c6628dff5da9c8cc182945355a9
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRefactor recovery test 37/239537/3
Ilho Kim [Mon, 27 Jul 2020 11:21:39 +0000 (20:21 +0900)]
Refactor recovery test

Change to use GTEST_FLAG to provide the gtest option

Change-Id: I75957a53a04445e9515580bbfc69aa0592656587
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix static analysis issue 87/240087/1
Sangyoon Jang [Mon, 3 Aug 2020 07:32:26 +0000 (16:32 +0900)]
Fix static analysis issue

Fix uncaught exepction.

Change-Id: Iaecd4303cbdc18e848b614e3df8520ee05a85b9b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRelease version 1.10.7 78/240078/1 submit/tizen/20200803.062829 submit/tizen/20200805.002122
Junghyun Yeon [Mon, 3 Aug 2020 05:52:01 +0000 (14:52 +0900)]
Release version 1.10.7

Changes:
 - Add try-catch statements

Change-Id: I765933616b1514a57ea8f80d9ec94128f8184d30
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd try-catch statements 52/239852/2
Junghyun Yeon [Thu, 30 Jul 2020 07:19:13 +0000 (16:19 +0900)]
Add try-catch statements

Change-Id: I7b9570a89e70ace32d20ccd93326f368591f4560
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoRelease version 1.10.6 50/239350/1 accepted/tizen/unified/20200727.132106 submit/tizen/20200724.075535
Ilho Kim [Fri, 24 Jul 2020 05:44:21 +0000 (14:44 +0900)]
Release version 1.10.6

Changes:
 - Supress build warnings

Change-Id: Ic4a86afe435ba350987e916029a2aa8b8ed72b1c
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoSupress build warnings 70/234770/3
Junghyun Yeon [Thu, 28 May 2020 11:24:47 +0000 (20:24 +0900)]
Supress build warnings

ASSERT_EQ defined at gtest uses if-else without braces
so if we use it with braceless if statement, it will cause
ambiguous else warning. This patch remove warnings by
adding braces at if statements.

Change-Id: Ifdeabf66bf4fc42cc69a9ef43b6557ea794ef87e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoRelease version 1.10.5 72/237872/1 accepted/tizen/unified/20200707.140933 submit/tizen/20200706.085806
Junghyun Yeon [Mon, 6 Jul 2020 08:09:05 +0000 (17:09 +0900)]
Release version 1.10.5

Changes:
 - Implement recovery test for uninstallation
 - Change filepath

Change-Id: Iada529f518c047cbdd4f25926b50264e249c0f3d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoChange filepath 10/237610/1
Junghyun Yeon [Thu, 2 Jul 2020 00:45:22 +0000 (09:45 +0900)]
Change filepath

Its path has changed.

Related changes:
[app-installers] : https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/237608

Change-Id: Ib4420a7190ea5378a25cf2fc15d41bf2b9faa6eb
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoImplement recovery test for uninstallation 44/236344/1
Junghyun Yeon [Tue, 16 Jun 2020 09:50:32 +0000 (18:50 +0900)]
Implement recovery test for uninstallation

Recovery for uninstallation should be operated as normal uninstall.

Change-Id: I6435b7a50a936948083a7248883158c24a8b0d49
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoRelease version 1.10.4 37/236037/1 accepted/tizen/unified/20200616.171027 submit/tizen/20200612.081636 submit/tizen/20200615.005642
Junghyun Yeon [Fri, 12 Jun 2020 06:58:40 +0000 (15:58 +0900)]
Release version 1.10.4

Changes:
 - Validate version when running recovery/rollback update tests
 - Validate file contents which are located at extracted dir
 - Fix StepTpkPreparePackageDirectory
 - Validate unpacked_dir not exists when recovery done

Change-Id: I9184d6679644e0f01e76b1efbf67590b2ffe501f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoValidate unpacked_dir not exists when recovery done 24/235424/1
Sangyoon Jang [Thu, 4 Jun 2020 10:37:55 +0000 (19:37 +0900)]
Validate unpacked_dir not exists when recovery done

Change-Id: I6ff9f1e84b57f431df67f9e9dd5e6abed78b0f4c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix StepTpkPreparePackageDirectory 12/235412/1
Sangyoon Jang [Thu, 4 Jun 2020 09:02:03 +0000 (18:02 +0900)]
Fix StepTpkPreparePackageDirectory

The unpacked dir path should not be changed. The extracted files will be
recovered without changing unpacked dir path.

Change-Id: Iab1444c1ed26718ae0651263258906a482caac4d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoValidate file contents which are located at extracted dir 11/235411/1
Sangyoon Jang [Thu, 4 Jun 2020 08:58:38 +0000 (17:58 +0900)]
Validate file contents which are located at extracted dir

When the package mount installed, some contents of package will be
extracted at package directory, because someone needs those files
without mounting zip file.
The test needs to validate those files recovered or rollbacked well or not.

Change-Id: Id72749b4cf5852f22bec30eaf3b52c157e13bc5d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoValidate version when running recovery/rollback update tests 37/235337/2
Sangyoon Jang [Thu, 4 Jun 2020 02:44:35 +0000 (11:44 +0900)]
Validate version when running recovery/rollback update tests

Change-Id: I56a1a49a8e19e6d259168602f50280eb61d3a241
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRelease version 1.10.3 39/234939/1 accepted/tizen/unified/20200603.150220 submit/tizen/20200601.023448 submit/tizen/20200602.012953
Ilho Kim [Mon, 1 Jun 2020 02:30:13 +0000 (11:30 +0900)]
Release version 1.10.3

Changes:
 - Add GetArchiveInfo
 - Make smoke utils as a library
 - Move CrashTpkInstaller class to tpk-smoke-utils
 - Fix ReadonlyUpdateInstallSteps base step name
 - Fix minor coding rule
 - Fix build error
 - Add description at help message for recovery test for clarification
 - Add TpkInstallerFactory
 - Fix coding rule

Change-Id: Ia212f83f14fdc02e15936f9f76257305022b84fa
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix coding rule 06/234606/1
Junghyun Yeon [Wed, 27 May 2020 10:02:28 +0000 (19:02 +0900)]
Fix coding rule

Change-Id: I9937e5b40582756a27fe48ef6078b8411a111595
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd TpkInstallerFactory 05/231105/4
Ilho Kim [Fri, 17 Apr 2020 07:40:26 +0000 (16:40 +0900)]
Add TpkInstallerFactory

Now tpk-backend uses installer-runner to run the installer

Change-Id: I8cbc1b19f4f6fb9887ffab001453e4badef08f96
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoAdd description at help message for recovery test for clarification 12/233712/1
Junghyun Yeon [Mon, 18 May 2020 10:38:34 +0000 (19:38 +0900)]
Add description at help message for recovery test for clarification

Change-Id: I08f5c765b6586b42c8c67743c71af3cba9fad8a6
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoFix build error 48/231748/1
Sangyoon Jang [Fri, 24 Apr 2020 05:14:07 +0000 (14:14 +0900)]
Fix build error

Change-Id: I38e9b2ab62dee51ca495b808adacb69aa6604ae3
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix minor coding rule 27/218827/5
Junghyun Yeon [Thu, 28 Nov 2019 10:05:14 +0000 (19:05 +0900)]
Fix minor coding rule

- Apply early-return policy.
- Print error while some boost API calling has failed.

Change-Id: I659e486fe6e7ed540497613470fa3c3a19d774e1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoFix ReadonlyUpdateInstallSteps base step name 55/230755/3
Ilho Kim [Tue, 14 Apr 2020 04:38:34 +0000 (13:38 +0900)]
Fix ReadonlyUpdateInstallSteps base step name

Relates :
- [app-installers]https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/230753/

Change-Id: Iccec6f1d54c48349197871064fc05c5bbf8f94a1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoMove CrashTpkInstaller class to tpk-smoke-utils 58/228658/5
Sangyoon Jang [Tue, 24 Mar 2020 11:11:44 +0000 (20:11 +0900)]
Move CrashTpkInstaller class to tpk-smoke-utils

This class can be used at other test, such as smoke test of unified-installer.

Change-Id: Idf72e0c8533b5d70530d36684d7ec7c534627416
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoMake smoke utils as a library 04/228604/5
Sangyoon Jang [Tue, 24 Mar 2020 06:18:09 +0000 (15:18 +0900)]
Make smoke utils as a library

This tpk-smoke-utils library is used at smoke test of unified-installer.

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/app-installers/+/228720

Change-Id: I342c1827141c3331459a2d752c133aa86ee408dd
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdd GetArchiveInfo 01/227301/5
Ilho Kim [Wed, 11 Mar 2020 06:02:26 +0000 (15:02 +0900)]
Add GetArchiveInfo

Requires :
- [app-installers]https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/228145/

Change-Id: I0fa47880207b598e7ae9ad6d4f87dadfdf529e96
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRelease version 1.10.2 53/229753/1 accepted/tizen/unified/20200413.012249 submit/tizen/20200403.082852 submit/tizen/20200410.073851
Ilho Kim [Fri, 3 Apr 2020 06:44:45 +0000 (15:44 +0900)]
Release version 1.10.2

Changes:
 - Fix TpkArchiveInfo

Change-Id: Idfeaa8a620758ec0ce1fea7c0d0643c15219da12
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix TpkArchiveInfo 97/226597/6
Sangyoon Jang [Thu, 27 Feb 2020 03:30:33 +0000 (12:30 +0900)]
Fix TpkArchiveInfo

There is a new base class for TpkArchiveInfo.

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/app-installers/+/226596

Change-Id: Icba15e406426f6e53f5be17e11e12269c54f8bc8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRelease version 1.10.1 06/226906/1 accepted/tizen/unified/20200309.031503 submit/tizen/20200306.075320
Ilho Kim [Fri, 6 Mar 2020 07:43:40 +0000 (16:43 +0900)]
Release version 1.10.1

Changes:
 - Add StepCrash's clean operation

Change-Id: I3f5b48bb158126856d4ef173f421ae121b4de425
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoAdd StepCrash's clean operation 02/226102/3
Ilho Kim [Thu, 27 Feb 2020 01:17:20 +0000 (10:17 +0900)]
Add StepCrash's clean operation

This patch can be used to test the installation termination in a clean operation

Change-Id: Iea285d4f6e66dc7104c00665c46a3295a91c8b93
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRelease version 1.10.0 14/226114/1 accepted/tizen/unified/20200302.041955 submit/tizen/20200227.033434 submit/tizen/20200228.073402
Sangyoon Jang [Thu, 27 Feb 2020 03:32:19 +0000 (12:32 +0900)]
Release version 1.10.0

Changes:
 - Split rpm packaging into library part and backend part
 - Fix smoke test

Change-Id: Ie355e126c4ff2411ab42e2493d19586367f87f92
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoFix smoke test 50/225150/2
Ilho Kim [Tue, 18 Feb 2020 00:10:40 +0000 (09:10 +0900)]
Fix smoke test

Recovery check routine changed after the recovery file is created

Change-Id: Ie3641e07104ba1f4bc6e3ee7d7a6dc1396a3ed5d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoSplit rpm packaging into library part and backend part 76/203976/19
Sangyoon Jang [Thu, 18 Apr 2019 08:44:39 +0000 (17:44 +0900)]
Split rpm packaging into library part and backend part

Change-Id: Icab87d25d042bfdd678395699eeb0df4bf766efa
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRelease version 1.9.3 53/224953/1 accepted/tizen/unified/20200217.213833 submit/tizen/20200214.080724
Ilho Kim [Fri, 14 Feb 2020 07:54:36 +0000 (16:54 +0900)]
Release version 1.9.3

Changes:
 - Change clean operations not to return failure

Change-Id: I3e00c713fc5096e145e5ea07923be986f37bfd14
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoChange clean operations not to return failure 14/223114/3
Ilho Kim [Thu, 23 Jan 2020 01:41:29 +0000 (10:41 +0900)]
Change clean operations not to return failure

Change-Id: I586f5785661eaf8dd06c841656323066ba038113
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRelease version 1.9.2 86/223586/1 accepted/tizen/unified/20200212.125959 submit/tizen/20200131.050227 submit/tizen/20200210.091657 submit/tizen/20200211.010149
Ilho Kim [Fri, 31 Jan 2020 04:33:19 +0000 (13:33 +0900)]
Release version 1.9.2

Changes:
 - Change the way to invoke installer as a subprocess
 - Add backup_type option for smoke test

Change-Id: I877ead97220c401331aac3743b5f63376653c11f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoAdd backup_type option for smoke test 08/218508/11
Ilho Kim [Fri, 22 Nov 2019 02:26:03 +0000 (11:26 +0900)]
Add backup_type option for smoke test

Run smoke tests with argumant "--backup-type <move|copy>"
select backup's type 'move' or 'copy and remove'

Requires:
   - https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/217537/

Change-Id: Iebe9c6ef1f7e6c1d03753a78bf049ecc628197ee
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoChange the way to invoke installer as a subprocess 05/220005/12
Ilho Kim [Thu, 12 Dec 2019 04:28:32 +0000 (13:28 +0900)]
Change the way to invoke installer as a subprocess

Requires :
   [app-installers]https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/220004/

Change-Id: I18b51a7bdf85daeb1dad60178fa045bf40f85cad

4 years agoRelease version 1.9.1 13/222713/1 accepted/tizen/unified/20200120.133149 submit/tizen/20200117.084916
Ilho Kim [Fri, 17 Jan 2020 08:42:53 +0000 (17:42 +0900)]
Release version 1.9.1

Changes:
 - Resolve static analysis issue

Change-Id: Iecfadd443a627be00d0b2bf27bf408965ffa1407
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoResolve static analysis issue 32/222632/2
Junghyun Yeon [Fri, 17 Jan 2020 01:27:58 +0000 (10:27 +0900)]
Resolve static analysis issue

Change-Id: I0c532cc7ca55da09fcfc1bb661aa2b81387d2496
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoRelease version 1.9.0 64/221764/1 accepted/tizen/unified/20200108.131457 submit/tizen/20200107.095413
Ilho Kim [Tue, 7 Jan 2020 08:59:39 +0000 (17:59 +0900)]
Release version 1.9.0

Changes:
 - Refactor recovery test tool
 - Fix adding steps using default steps

Change-Id: I182734cc16877d239f5979564cb0c18e43b053a2
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix adding steps using default steps 16/207216/17 submit/tizen_5.5/20200103.002242
Sangyoon Jang [Wed, 29 May 2019 10:06:01 +0000 (19:06 +0900)]
Fix adding steps using default steps

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/app-installers/+/207215

Change-Id: Ibba0273f806b5c636b23a5bc7b9924b5a91758f7
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRefactor recovery test tool 72/218972/4
Ilho Kim [Fri, 29 Nov 2019 06:59:33 +0000 (15:59 +0900)]
Refactor recovery test tool

- Use enum class, not typedef
- Use boost program options for parsing argument

Change-Id: I1d129ab935e65b3eda701135e732e45eba55180f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRelease version 1.8.14 10/220110/1 tizen_5.5_tv accepted/tizen/5.5/unified/20200105.221100 accepted/tizen/unified/20191216.222226 submit/tizen/20191213.074937 submit/tizen_5.5/20200103.003447
Ilho Kim [Fri, 13 Dec 2019 07:02:59 +0000 (16:02 +0900)]
Release version 1.8.14

Changes:
 - Add no backup option for smoke tests
 - Fix smoke-test functions for rollback cases
 - Change duplicated step name
 - Add test cases for updating shared data dir
 - Fix recovery test when recovery file doesn't exist

Change-Id: I399c3dc57ed93a34a84caf4b64247b24aba893cf
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix recovery test when recovery file doesn't exist 97/219197/3
Ilho Kim [Tue, 3 Dec 2019 05:21:09 +0000 (14:21 +0900)]
Fix recovery test when recovery file doesn't exist

If installer is terminated before creating the recovery file
The test should be skipped, not failed

Change-Id: I9df1d77f2848c5e975596b7d4085700f41a0d6d3
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoAdd test cases for updating shared data dir 92/218192/13
Sangyoon Jang [Tue, 19 Nov 2019 09:16:29 +0000 (18:16 +0900)]
Add test cases for updating shared data dir

Added:
 - RollbackTest.UpdateMode_SharedData: update case of shareddata -> non-shareddata
 - RollbackTest.UpdateMode_NonSharedData: update case of non-shareddata -> shareddata
 - SmokeTest.RecoveryMode_SharedData: recovery case of shareddata -> non-shareddata
 - SmokeTest.RecoveryMode_NonSharedData: recovery case of non-shareddata -> shareddata

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/app-installers/+/218218

Change-Id: I078c5b1f907382b3ff88b42508678b772da48e13
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoChange duplicated step name 30/218830/2
Junghyun Yeon [Thu, 28 Nov 2019 11:10:18 +0000 (20:10 +0900)]
Change duplicated step name

Same step name exists on wgt-backend.

Change-Id: Iea12e8def08dd21e91302a602c82c1eb91881c97
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoFix smoke-test functions for rollback cases 94/218094/8
Sangyoon Jang [Tue, 19 Nov 2019 09:17:04 +0000 (18:17 +0900)]
Fix smoke-test functions for rollback cases

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/218093

Change-Id: I456bfa94a24169384629b7c661dbdfff1a35f7de
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoAdd no backup option for smoke tests 84/218084/12
Ilho Kim [Tue, 19 Nov 2019 06:18:33 +0000 (15:18 +0900)]
Add no backup option for smoke tests

Run smoke tests with argument "--no-backup", backup is skipped

Change-Id: I83d58214b63f5528a0cc3c110cfa8554c5a0e544
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRelease version 1.8.13 43/218543/1 accepted/tizen/unified/20191201.221516 submit/tizen/20191128.101053 submit/tizen_5.5/20191205.065343
Junghyun Yeon [Mon, 25 Nov 2019 08:21:47 +0000 (17:21 +0900)]
Release version 1.8.13

Changes:
 - Revert "Fix recovery test's failure"

Change-Id: I2b38f1ff3b7506464f2e2f0a631f8ff2e2ac7489
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoRevert "Fix recovery test's failure" 60/218060/1
Sangyoon Jang [Tue, 19 Nov 2019 04:54:34 +0000 (13:54 +0900)]
Revert "Fix recovery test's failure"

This reverts commit c6435c86d25654408945b09f1ad48723b38aaa67.

PkgQuery should not be used directly.

Change-Id: Ie90b8087d092bdf6917e0ef7a48e674ab7f72c1f

4 years agoRelease version 1.8.12 68/217468/1 accepted/tizen/5.5/unified/20191118.084820 accepted/tizen/unified/20191115.083951 submit/tizen/20191112.050420 submit/tizen/20191114.120558 submit/tizen/20191115.055644 submit/tizen_5.5/20191112.065048 submit/tizen_5.5/20191114.121100 submit/tizen_5.5/20191115.055905
Ilho Kim [Tue, 12 Nov 2019 04:28:40 +0000 (13:28 +0900)]
Release version 1.8.12

Changes:
 - Move implementation of virtual functions which does nothing
 - Add capability and exec_label for recovery_test
 - Fix build warning
 - Change packages used in recovery test
 - Adjust order of steps
 - Fix coding rule
 - Modify recovery test to handle cleanup type

Change-Id: I057e2abcf8c6d8ab2963dd0c66f7b34ee42948d9
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoModify recovery test to handle cleanup type 34/217234/1
Ilho Kim [Fri, 8 Nov 2019 00:45:19 +0000 (09:45 +0900)]
Modify recovery test to handle cleanup type

When recovery file set cleanup, recovery package is updated
So in this case, it is necessary to compare updated content

-Reference
    [app-installers]https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/216457/

Change-Id: Id005fcb3ec495822c90e00f7fd4a396b31f9ff56
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoFix coding rule 23/217023/1
Junghyun Yeon [Tue, 5 Nov 2019 11:40:05 +0000 (20:40 +0900)]
Fix coding rule

Change-Id: Ia7c301b2ada2c3528d270cc064c8e06e52d390db
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoAdjust order of steps 29/216129/2
Ilho Kim [Mon, 21 Oct 2019 08:35:06 +0000 (17:35 +0900)]
Adjust order of steps

Revert from 'ca625dadda76259cec5543a2c4096e1d39fbc15f'

Change-Id: Iad1907e2eb583a769db2abbb16472c1558144b33
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoChange packages used in recovery test 71/216471/5
Ilho Kim [Fri, 25 Oct 2019 08:45:59 +0000 (17:45 +0900)]
Change packages used in recovery test

Increase the package size

Change-Id: Ie3723b4e431a9e0abce29669a0d4a60c9d1df0b4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoFix build warning 53/216453/10
Ilho Kim [Fri, 25 Oct 2019 04:52:56 +0000 (13:52 +0900)]
Fix build warning

Warning that "deprecated conversion from string constant to 'char*'"

Change-Id: I358e41d668af069b79e40ff353f3ce62339a9654
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoAdd capability and exec_label for recovery_test 48/216448/2
Ilho Kim [Fri, 25 Oct 2019 04:08:21 +0000 (13:08 +0900)]
Add capability and exec_label for recovery_test

Install request requires some capability and smack label

Change-Id: I593a895d7f42009287497d76591b3582e6a6837e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoMove implementation of virtual functions which does nothing 28/216728/1
Junghyun Yeon [Thu, 31 Oct 2019 07:49:52 +0000 (16:49 +0900)]
Move implementation of virtual functions which does nothing

Change-Id: I693a5cebff4b31ca013b765185f810837e36382b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 1.8.11 88/214288/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.024132 accepted/tizen/5.5/unified/mobile/hotfix/20201027.084042 accepted/tizen/unified/20191011.080002 submit/tizen/20190920.015601 submit/tizen/20191001.095121 submit/tizen/20191002.002728 submit/tizen/20191011.034248 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 tizen_5.5.m2_release
Ilho Kim [Fri, 20 Sep 2019 01:38:22 +0000 (10:38 +0900)]
Release version 1.8.11

Changes:
 - Fix StepTpkPatchIcons

Change-Id: Ic52a056a2e3b79e66a0b205cd62ab8b2f7a9b854
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoFix StepTpkPatchIcons 50/210950/5
Junghyun Yeon [Fri, 26 Jul 2019 07:25:20 +0000 (16:25 +0900)]
Fix StepTpkPatchIcons

- Fix coding rules.
- Fix possible static issue.
- Add error checking routines.

Change-Id: Ic7d8e7a3977a196c872cb55f8ec68116aeeb82ba
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRelease version 1.8.10 01/213001/1 accepted/tizen/unified/20190903.052631 submit/tizen/20190829.072413 submit/tizen/20190902.052445
Ilho Kim [Thu, 29 Aug 2019 07:10:26 +0000 (16:10 +0900)]
Release version 1.8.10

Changes:
 - Change order of StepRemoveTemporaryDirectory
 - Add recover test for crash after unzip

Change-Id: Ic646ecf3d9ac41725c0af63a54db364e6172e91b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoAdd recover test for crash after unzip 37/212537/3
Ilho Kim [Thu, 22 Aug 2019 11:57:30 +0000 (20:57 +0900)]
Add recover test for crash after unzip

requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/212535/

Change-Id: I842ef743a815a4ff040c554e1795d3bc5d443b93
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoChange order of StepRemoveTemporaryDirectory 77/212677/1
Ilho Kim [Mon, 26 Aug 2019 05:32:10 +0000 (14:32 +0900)]
Change order of StepRemoveTemporaryDirectory

In case installation terminated after StepUnzip,
recovery file doesn't have pkgid,
and then StepParseManifest will return RECOVERY_DONE,
and temporary file doesn't be removed

Change-Id: I671090285767b7d2ecbe10e5f28e0772b14f18b1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoRelease version 1.8.9 75/212275/1 accepted/tizen/unified/20190820.115020 submit/tizen/20190820.015710
Ilho Kim [Tue, 20 Aug 2019 01:36:36 +0000 (10:36 +0900)]
Release version 1.8.9

Changes:
 - Fix static analysis issue
 - Fix recovery test's failure
 - Add GetDependencyInfo at TPK archive info

Change-Id: Id5fa83dbc4f59f86d38588e3cb2d1ec72c34552f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoAdd GetDependencyInfo at TPK archive info 15/211115/4
Junghyun Yeon [Tue, 30 Jul 2019 07:50:09 +0000 (16:50 +0900)]
Add GetDependencyInfo at TPK archive info

Related changes:
[slp-pkgmgr] : https://review.tizen.org/gerrit/211114
[pkgmgr-info] : https://review.tizen.org/gerrit/211111

Change-Id: I7c8fd6dcf8be0387c7fcd98f8018f0174044b873
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoFix recovery test's failure 54/211054/3
Ilho Kim [Mon, 29 Jul 2019 11:04:55 +0000 (20:04 +0900)]
Fix recovery test's failure

In testcase with repeat, PkgQuery has handle that made from singleton,
so there is a need to reset the singleton

Change-Id: If95e80525a7ed1763dc0bc58f3ca9086ce4652de
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoFix static analysis issue 69/211769/3
Ilho Kim [Fri, 9 Aug 2019 04:17:46 +0000 (13:17 +0900)]
Fix static analysis issue

Fix NULL Pointer dereference when memory allocation fails

Change-Id: Id988582b90da46dffb799ac17414b3e9b2a7cdd9
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoRelease version 1.8.8 11/211811/1 accepted/tizen/unified/20190812.235628 submit/tizen/20190809.084335
Ilho Kim [Fri, 9 Aug 2019 08:15:54 +0000 (17:15 +0900)]
Release version 1.8.8

Changes:
 - Implement recovery test for forced termination
 - Fix coding style

Change-Id: I6f0a0072f85b9824f38118f7725d883d8b4b6389
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoFix coding style 82/211182/2
Ilho Kim [Wed, 31 Jul 2019 03:28:12 +0000 (12:28 +0900)]
Fix coding style

Change-Id: I9353b9beb35f888cb9d06c60d9475c6028b84b14
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoImplement recovery test for forced termination 64/207664/15
Ilho Kim [Wed, 5 Jun 2019 07:45:54 +0000 (16:45 +0900)]
Implement recovery test for forced termination

Using time interval, kill install process and perform a recovery test

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/209477/

Change-Id: Ifa90cab0b5b0da70f620bfcfcb8f39a81d2ee180
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoRelease version 1.8.7 48/210548/1 accepted/tizen/unified/20190723.053619 submit/tizen/20190722.090051
Junghyun Yeon [Mon, 22 Jul 2019 08:44:11 +0000 (17:44 +0900)]
Release version 1.8.7

Changes:
 - Fix smoke test
 - Revert "Fix smoke test"

Change-Id: I991fae939df464b24b711a2177f8b19b34990639
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoRevert "Fix smoke test" 21/210521/1
ilho kim [Mon, 22 Jul 2019 05:34:29 +0000 (05:34 +0000)]
Revert "Fix smoke test"

This reverts commit 554cc188a5a66e0642123905dfa690a20dc46dce.

Change-Id: I451e68ffcd413c3023a57d0fa53d9d2bdc29c290

5 years agoFix smoke test 55/210255/1
Ilho Kim [Wed, 17 Jul 2019 08:11:15 +0000 (17:11 +0900)]
Fix smoke test

Add process to initialize DB for test

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/210253/

Change-Id: I86de0dc31a08a26604eee7095469000d78a4f0b1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoRelease version 1.8.6 89/209889/1 accepted/tizen/unified/20190717.115211 submit/tizen/20190712.071407 submit/tizen/20190716.022534
Ilho Kim [Fri, 12 Jul 2019 06:47:13 +0000 (15:47 +0900)]
Release version 1.8.6

Changes:
 - Combine StorageDirectories Steps
 - Unit tests for duplicated splash screen detection

Change-Id: I18c8a2d01b408e9251e6aae1f74c9eea3d5acee1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoUnit tests for duplicated splash screen detection 51/205151/2
Michal Marszal [Mon, 29 Apr 2019 14:37:29 +0000 (16:37 +0200)]
Unit tests for duplicated splash screen detection

Patch requires: https://review.tizen.org/gerrit/#/c/205150/

Change-Id: I0c65e0e3e933f3dc1760417192c45ce3c7146acb
Signed-off-by: Michal Marszal <m.marszal@samsung.com>
5 years agoCombine StorageDirectories Steps 94/206194/7
Ilho Kim [Tue, 14 May 2019 01:47:19 +0000 (10:47 +0900)]
Combine StorageDirectories Steps

Combined step :
 - StepCreateStorageDirectories and StepCreatePerUserStorageDirectories
 - StepUpdateStorageDirectories and StepUpdatePerUserStorageDirectories
 - StepRecoverStorageDirectories and StepRecoverPerUserStorageDirectories

Related changes
    [app-installers] https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/206075/
    [tpk-backend] https://review.tizen.org/gerrit/#/c/platform/core/appfw/tpk-backend/+/206194/
    [wgt-backend] https://review.tizen.org/gerrit/#/c/platform/core/appfw/wgt-backend/+/206193/

Change-Id: I0de7d1c33cfd06619b130c988bc77c7a9dccbd9e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoRelease version 1.8.5 51/208551/1 accepted/tizen/unified/20190626.064939 submit/tizen/20190626.013636
Ilho Kim [Wed, 26 Jun 2019 01:50:54 +0000 (10:50 +0900)]
Release version 1.8.5

Changes:
 - Fix namespace of StepCreateRecoveryFile
 - Fix smoke test helper
 - Fix name of some steps

Change-Id: Iac924691ecaee45babed138825d27aae2abbfe32
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoFix name of some steps 11/207711/2
Sangyoon Jang [Tue, 11 Jun 2019 08:45:17 +0000 (17:45 +0900)]
Fix name of some steps

The name of class StepExampleClass should be "ExampleClass"

Change-Id: Ic6c72e66ea2868e998849d212a55fffe4edf1ef7
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoFix smoke test helper 45/204345/5
Sangyoon Jang [Tue, 23 Apr 2019 07:39:37 +0000 (16:39 +0900)]
Fix smoke test helper

To use custom step, we need to derive a new class.
(refer: https://review.tizen.org/gerrit/c/platform/core/appfw/app-installers/+/203760)

Change-Id: I8eadd437e8a1a2b20a34fa0a3d7f0cd8b75d0f96
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoFix namespace of StepCreateRecoveryFile 60/206960/4
Sangyoon Jang [Wed, 29 May 2019 10:07:15 +0000 (19:07 +0900)]
Fix namespace of StepCreateRecoveryFile

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/app-installers/+/206959

Change-Id: Ia36967a54acbc12a56883a1894a19abc1c1e5967
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoRelease version 1.8.4 05/207305/1 accepted/tizen/unified/20190604.081856 submit/tizen/20190603.050018
Sangyoon Jang [Mon, 3 Jun 2019 04:42:15 +0000 (13:42 +0900)]
Release version 1.8.4

Changes:
 - Fix libtpk

Change-Id: I934aaae337e184904319e936201e08b2f9d14b67
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoFix libtpk 98/207298/1
Sangyoon Jang [Mon, 3 Jun 2019 02:31:33 +0000 (11:31 +0900)]
Fix libtpk

Add extern "C" to using at C module.

Change-Id: I1f8479346b22649368d58c2974cdb9113ed7002f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>