summaryrefslogtreecommitdiffstats
path: root/common/scripts/application-lifecycle.sh
AgeCommit message (Collapse)AuthorFilesLines
2019-11-28Also call kill in the right contextJan-Simon Moeller1-1/+1
depending on the app. Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: I7208497e81fb3fcb2636bf7559b27ff2b5ce7676
2019-11-28Call info ps and status in the context of the app userJan-Simon Moeller1-4/+4
We need to call the info and status call under the context of user under which the app runs. Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: I25abff89db22c5effb6addfbc59ec30575aae2ed
2019-11-26SPEC-2970: Improove logging sizeCorentin LABBE1-0/+1
When TERM is dump, the width of logging is cropped at 80columns which made debugging harder. This patchs increase columns size to 1000. Bug-AGL: SPEC-2970 Change-Id: Ia70136b6aa6242362b1286631ae4b00ab567ae2e Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
2019-10-23remove debuging information of do_afm_utilCorentin LABBE1-2/+0
This printing breaks 'rid' parsing, remove it. Bug-AGL: SPEC-2903 Bug-AGL: SPEC-2925 Change-Id: I505ab9d2994f983de53849fce25d87c8af44362d Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
2019-10-22SPEC-2903: fix the grep test methodCorentin LABBE1-2/+6
While inspecting if application test is working with our latest SPEC-2903 changes I see in job 8845 the following errors: + grep urn:AGL:widget:provided-api config.xml + '<feature' 'name=\"urn:AGL:widget:provided-api\">' ./common/scripts/application-lifecycle.sh: line 74: <feature: command not found So let's change the grep method. Furthermore, add a debug for the do_afm_util for being sure it work as needed. Bug-AGL: SPEC-2903 Change-Id: I5a8a6d98cd9dc6c1b2d1626fc6841eb2c2b16d53 Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
2019-10-21SPEC-2903: Use a wrapper instead of constructing a commandCorentin LABBE1-23/+19
This patch change the way we ran afm-util commands by using a simple wrapper. Furthermore, since we are in a loop, let's reset all variable (SERVICE_PLATFORM/etc..) to 0 at the beginning of the loop. Extra-furthermore: restore the unzip error code test, but in non-fatal way, since busybox unzip seems to dont like our CRC. Bug-AGL: SPEC-2903 Change-Id: I5d7357fd74307ed69a6675beac57d8601fdcdb52 Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
2019-10-19Improve lifecycle testJan-Simon Moeller1-7/+9
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: I9076278096e15829b4bca52f6b5ef9e9a3b39e9e
2019-10-17Differ platform and user scope in service and applicationJan-Simon Moeller1-2/+38
When executing the lifecycle test, we need to take into account if the service or app runs in platform or user scope. Bug-AGL: SPEC-2903 . Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: I49a53a5a2b14666757b65b0f8203eb73ed2c7b45
2019-03-26Add application-lifecycle testCorentin LABBE1-0/+211
This patch adds basic Application Lifecycle Workflow Test (fetch, uninstall, install, start) Bug-AGL: SPEC-1850 Change-Id: Ie65648e043b7909aecb2fe64dfbf2b2bba8f1f37 Signed-off-by: Corentin LABBE <clabbe@baylibre.com>