blob: 5d6338591efcb37db86b7cf74f89b326a46a5738 (
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
|
context:
test_character_delay: 10
device_type: hi6220-hikey
tags:
- oe-only
job_name: lkft-ltp-${KERNEL_BRANCH}-${BUILD_NUMBER}
timeouts:
job:
minutes: 60
action:
minutes: 10
connection:
minutes: 2
priority: medium
visibility: public
# run udhcpc in the test shell before accessing the internet
metadata:
kernel-branch: ${KERNEL_BRANCH}
kernel-repo: ${KERNEL_REPO}
kernel-commit: ${KERNEL_COMMIT}
kernel-describe: ${KERNEL_DESCRIBE}
make_kernelversion: "${MAKE_KERNELVERSION}"
kernel-config: ${KERNEL_CONFIG_URL}
ltp-url: ${LTP_URL}
ltp-version: ${LTP_VERSION}
ltp-revision: ${LTP_REVISION}
build-url: ${BUILD_URL}
series: lkft
protocols:
lava-lxc:
name: lxc-hikey-oe
template: debian
distribution: debian
release: jessie
arch: amd64
mirror: http://mirror.bytemark.co.uk/debian
actions:
- deploy:
namespace: tlxc
timeout:
minutes: 15
to: lxc
packages:
- android-tools-fastboot
- python
- python-pip
- python-pexpect
- python-requests
- python-yaml
- git
os: debian
- boot:
namespace: tlxc
prompts:
- 'root@(.*):/#'
- 'hikey:/'
timeout:
minutes: 5
method: lxc
- deploy:
timeout:
minutes: 15
to: fastboot
namespace: hikey-oe
connection: lxc
images:
ptable:
url: http://releases.linaro.org/reference-platform/embedded/hikey/16.12/rpb/bootloader/ptable-linux-8g.img
reboot: hard-reset
boot:
url: ${BOOT_URL}
reboot: hard-reset
system:
url: ${SYSTEM_URL}
compression: gz
apply-overlay: true
# ensure that this job raises a network interface with DHCP before relying on internet access
os: oe
protocols:
lava-lxc:
- action: fastboot-deploy
request: pre-power-command
timeout:
minutes: 2
- boot:
namespace: hikey-oe
auto_login:
login_prompt: 'login:'
username: linaro
login_commands:
# Become super user to run tests
- su
prompts:
- 'hikey:~'
- 'root@(.*):/#'
timeout:
minutes: 5
method: uefi-menu
commands: fastboot
protocols:
lava-lxc:
# other action could be boot-fastboot
- action: uefi-commands
request: pre-os-command
timeout:
minutes: 2
- test:
namespace: hikey-oe
timeout:
minutes: 60
definitions:
- from: inline
repository:
metadata:
format: Lava-Test Test Definition 1.0
name: prep-tests
description: "Device preparation"
run:
steps:
# the image does not raise the interface itself
# force a DHCP request to avoid avahi using a zero conf address.
- udhcpc
- netstat
- ip a
- ifconfig
- df
- cat /sys/class/thermal/thermal_zone0/policy || true
- echo "power_allocator" > /sys/class/thermal/thermal_zone0/policy || true
- cat /sys/class/thermal/thermal_zone0/policy || true
name: prep-inline
path: inline/prep.yaml
- test:
namespace: tlxc
timeout:
minutes: 90
definitions:
- from: inline
repository:
metadata:
format: Lava-Test Test Definition 1.0
name: ltp-syscalls
description: "LTP syscalls"
run:
steps:
- git clone git://git.linaro.org/qa/test-definitions.git
- cd test-definitions
- . ./automated/bin/setenv.sh
- export TARGET_IP=$(lava-target-ip)
- echo $TARGET_IP
- python automated/utils/test-runner.py -d automated/linux/ltp/ltp.yaml -g root@$TARGET_IP -r SKIPFILE="skipfile-lkft-hikey" SKIP_INSTALL="true" TIMEOUT_MULTIPLIER=3 TST_CMDFILES=syscalls
name: ltp-syscalls
path: inline/ltp.yaml
timeout:
minutes: 75
|