blob: 48039cac42786ae672619418df1fa0074ecbeac3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
protocols:
lava-lxc:
name: lxc-${MACHINE}-test
template: debian
distribution: debian
release: stretch
actions:
- deploy:
namespace: tlxc
timeout:
minutes: 5
to: lxc
packages:
- wget
- unzip
- abootimg
- cpio
- gzip
- git
- mktemp
os: debian
- boot:
namespace: tlxc
prompts:
- 'root@(.*):/#'
- 'root@linaro-developer:~#'
timeout:
minutes: 5
method: lxc
- deploy:
timeout:
minutes: 40
to: download
namespace: ${MACHINE}
images:
boot:
url: ${BOOT_URL}
compression: ${BOOT_URL_COMP}
apply-overlay: true
os: oe
- test:
namespace: tlxc
timeout:
minutes: 30
definitions:
- from: inline
name: ${MACHINE}-apply-test-overlay
path: inline/${MACHINE}-apply-test-overlay.yaml
repository:
metadata:
description: ${MACHINE} apply test overlay
format: Lava-Test Test Definition 1.0
name: ${MACHINE}-apply-test-overlay
run:
steps:
- overlay_file=/lava-lxc/overlays/${MACHINE}/overlay.tar.gz
- if [ -f $$overlay_file ]
- then
- configs_dir=$$(mktemp -d /tmp/configs.XXXX)
- git clone --depth 1 http://git.linaro.org/ci/job/configs.git $$configs_dir
- $$configs_dir/lt-qcom-linux-integration/copy_test_overlay.sh /lava-lxc/${LXC_BOOT_FILE} $$overlay_file
- echo "apply_test_overlay:" "pass"
- else
- echo "apply_test_overlay:" "skip"
- fi
- test:
namespace: tlxc
timeout:
minutes: 10
definitions:
- from: inline
name: install-google-fastboot
path: inline/install-google-fastboot.yaml
repository:
metadata:
format: Lava-Test Test Definition 1.0
name: install-fastboot
description: "Install fastboot provided by google"
run:
steps:
- wget https://dl.google.com/android/repository/platform-tools_r26.0.2-linux.zip
- unzip platform-tools_r26.0.2-linux.zip
- ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot
- ln -s `pwd`/platform-tools/adb /usr/bin/adb
- fastboot --version
- deploy:
timeout:
minutes: 40
to: fastboot
namespace: ${MACHINE}
images:
boot:
url: lxc:///${LXC_BOOT_FILE}
os: oe
protocols:
lava-lxc:
- action: fastboot-deploy
request: pre-power-command
timeout:
minutes: 2
- boot:
namespace: ${MACHINE}
prompts:
- 'linaro-test .*#'
timeout:
minutes: 15
method: fastboot
|