aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom-linux-integration/lava-job-definitions/sdm845-mtp/template-bootrr.yaml
blob: 8754e87ffef993346be247d958094af3cd36c090 (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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
device_type: ${LAVA_DEVICE_TYPE}
job_name: lt-qcom-linux-integration-bootrr-${BUILD_NUMBER}
timeouts:
  job:
    minutes: 90
  action:
    minutes: 15
  connection:
    minutes: 2
priority: high
visibility: public

metadata:
  source: https://git.linaro.org/ci/job/configs.git
  path: lt-qcom-linux-integration/lava-job-definitions/${LAVA_DEVICE_TYPE}/template-bootrr.yaml

protocols:
  lava-lxc:
    name: lxc-${LAVA_DEVICE_TYPE}-test
    template: debian
    distribution: debian
    release: stretch

actions:
- deploy:
    namespace: tlxc
    timeout:
      minutes: 5
    to: lxc
    packages:
    - wget
    - unzip
    - abootimg
    - cpio
    - gzip
    - git
    - mktemp
    - fastboot
    os: debian

- boot:
    namespace: tlxc
    prompts:
    - 'root@(.*):/#'
    - 'root@linaro-developer:~#'
    timeout:
      minutes: 5
    method: lxc

- deploy:
    timeout:
      minutes: 40
    to: download
    namespace: ${LAVA_DEVICE_TYPE}
    images:
      boot:
        url: ${BOOT_URL}
        compression: ${BOOT_URL_COMP}
        apply-overlay: true
    os: oe

- test:
    namespace: tlxc
    timeout:
      minutes: 30
    definitions:
    - from: inline
      name: ${LAVA_DEVICE_TYPE}-apply-test-overlay
      path: inline/${LAVA_DEVICE_TYPE}-apply-test-overlay.yaml
      repository:
        metadata:
          description: ${LAVA_DEVICE_TYPE} apply test overlay
          format: Lava-Test Test Definition 1.0
          name: ${LAVA_DEVICE_TYPE}-apply-test-overlay
        run:
          steps:
          - overlay_file=/lava-lxc/overlays/${LAVA_DEVICE_TYPE}/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:
          - if [ -z "${INSTALL_FASTBOOT}" ]
          - then
          -     echo "install_fastboot:" "skip"
          - else
          -     wget https://dl.google.com/android/repository/platform-tools_r26.0.2-linux.zip
          -     unzip -q 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
          -     echo "install_fastboot:" "pass"
          - fi

- deploy:
    timeout:
      minutes: 40
    to: fastboot
    namespace: ${LAVA_DEVICE_TYPE}
    images:
      boot:
        url: lxc:///${LXC_BOOT_FILE}
    os: oe

- boot:
    namespace: ${LAVA_DEVICE_TYPE}
    prompts:
    - 'linaro-test .*#'
    timeout:
      minutes: 15
    method: fastboot

- test:
    namespace: ${LAVA_DEVICE_TYPE}
    name: qcomlt-linux-integration-smoke
    timeout:
      minutes: 5
    definitions:
    - from: inline
      name: qcomlt-linux-integration-smoke
      path: inline/qcomlt-linux-integration-smoke.yaml
      repository:
        metadata:
          description: QCOM LT linux integration smoke
          format: Lava-Test Test Definition 1.0
          name: qcomlt-linux-integration-smoke 
        run:
          steps:
          - uname -a
          - df
          - free
          - ls -l /dev
          - ls -l /sys
          - ls -l /proc
          - echo "linux_integration_smoke:" "pass"

- test:
    namespace: ${LAVA_DEVICE_TYPE}
    name: qcomlt-linux-integration-bootrr
    timeout:
      minutes: 5
    definitions:
    - from: inline
      name: qcomlt-linux-integration-bootrr
      path: inline/qcomlt-linux-integration-bootrr.yaml
      repository:
        metadata:
          description: QCOM LT linux integration bootrr
          format: Lava-Test Test Definition 1.0
          name: qcomlt-linux-integration-bootrr
        run:
          steps:
          - if [ "${LAVA_DEVICE_TYPE}" == "dragonboard-410c" ]; then
          -     qcom,apq8016-sbc
          - elif [ "${LAVA_DEVICE_TYPE}" == "dragonboard-820c" ]; then
          -     arrow,apq8096-db820c
          - elif [ "${LAVA_DEVICE_TYPE}" == "sdm845-mtp" ]; then
          -     qcom,sdm845-mtp
          - fi