blob: 36e986a69012d67c039b2a3d4176110a2b56d68a (
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
|
#!/bin/bash
rm -rf configs
git clone --depth 1 http://git.linaro.org/ci/job/configs.git
pushd configs
git log -1
popd
# Used by DB410C's template:
export RESIZE_ROOTFS=${RESIZE_ROOTFS:-}
templates_common_minimal=( prod-image.yaml )
templates_common_normal=( ${templates_common_minimal[@]} )
if [[ "${IMAGES}" == *dev-image* ]]; then
templates_common_normal=( ${templates_common_normal[@]} dev-image.yaml )
fi
templates_common_network=( ${templates_common_normal[@]} )
templates_common_full=( ${templates_common_network[@]} ltp-ptest.yaml )
templates_soca9_minimal=
templates_soca9_normal=( \
${templates_soca9_minimal[@]}
lava-multinode-soca9-j21.yaml
lava-multinode-soca9-j24-mtu1508.yaml
)
templates_soca9_network=( \
${templates_soca9_normal[@]}
lava-multinode-soca9-j17.yaml
lava-multinode-soca9-j22.yaml
lava-multinode-soca9-j23.yaml
lava-multinode-soca9-j24.yaml
lava-multinode-soca9-j22-mtu1508.yaml
lava-multinode-soca9-j23-mtu1508.yaml
)
templates_soca9_full=( ${templates_soca9_network[@]} )
templates_rzn1d_minimal=
templates_rzn1d_normal=( \
${templates_rzn1d_minimal[@]}
lava-multinode-rzn1d-j21.yaml
lava-multinode-rzn1d-j24-mtu1508.yaml
)
templates_rzn1d_network=( \
${templates_rzn1d_normal[@]}
lava-multinode-rzn1d-j17.yaml
lava-multinode-rzn1d-j22.yaml
lava-multinode-rzn1d-j23.yaml
lava-multinode-rzn1d-j24.yaml
lava-multinode-rzn1d-j22-mtu1508.yaml
lava-multinode-rzn1d-j23-mtu1508.yaml
)
templates_rzn1d_full=( ${templates_rzn1d_network[@]} )
case "${DEVICE_TYPE}" in
rzn1d)
templates_minimal=( ${templates_common_minimal[@]} ${templates_rzn1d_minimal[@]} )
templates_normal=( ${templates_common_normal[@]} ${templates_rzn1d_normal[@]} )
templates_network=( ${templates_common_network[@]} ${templates_rzn1d_network[@]} )
templates_full=( ${templates_common_full[@]} ${templates_rzn1d_full[@]} )
;;
soca9)
templates_minimal=( ${templates_common_minimal[@]} ${templates_soca9_minimal[@]} )
templates_normal=( ${templates_common_normal[@]} ${templates_soca9_normal[@]} )
templates_network=( ${templates_common_network[@]} ${templates_soca9_network[@]} )
templates_full=( ${templates_common_full[@]} ${templates_soca9_full[@]} )
;;
am64x)
echo "No LAVA tests for am64x"
exit 0
;;
*)
echo "unknown DEVICE_TYPE in submit_for_testing.sh"
exit 1
;;
esac
case $TEST_LEVEL in
"none" | "0")
templates=()
;;
"minimal" | "minimum" | "min" | "1")
templates=( ${templates_minimal[@]} )
;;
"normal" | "2")
templates=( ${templates_normal[@]} )
;;
"network" | "3")
templates=( ${templates_network[@]} )
;;
*)
templates=( ${templates_full[@]} )
;;
esac
for template in ${templates[@]};
do
python configs/openembedded-lkft/submit_for_testing.py \
--device-type ${DEVICE_TYPE} \
--build-number ${BUILD_NUMBER} \
--lava-server ${LAVA_SERVER} \
--qa-server ${QA_SERVER} \
--qa-server-team ${QA_SERVER_TEAM} \
--qa-server-project ${QA_SERVER_PROJECT} \
--git-commit ${MANIFEST_COMMIT} \
--template-path configs/schneider-openembedded/lava-job-definitions/ \
--template-names ${template}
done
|