diff options
author | Ryan Harkin <ryan.harkin@linaro.org> | 2020-01-20 20:47:47 +0000 |
---|---|---|
committer | Ryan Harkin <ryan.harkin@linaro.org> | 2020-01-21 08:36:31 +0000 |
commit | 3b53ecd43951b673826057da700360127eff5eee (patch) | |
tree | b82c53191e63902221b812c98ba37ec95b609886 /schneider-openembedded | |
parent | 40261f2b388733c7df64858f054d49848789fb7f (diff) |
se: add TEST_LEVEL variable
Add a variable that can be set during job submission to control the
level of testing sent to LAVA. The default level is 'normal', but I've
also added 'minimum' and 'full', where the levels are additive:
minimum: run the dip-image test only
normal: run dip-image-edge, and dip-image-dev with the functional tests
maximum: run LTP and PTEST suites (these take 4-6 hours)
Change-Id: I3167c205772028df142de0e16573bf49d554bdf5
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Diffstat (limited to 'schneider-openembedded')
-rwxr-xr-x | schneider-openembedded/submit_for_testing.sh | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/schneider-openembedded/submit_for_testing.sh b/schneider-openembedded/submit_for_testing.sh index bee4e297..1ab2b497 100755 --- a/schneider-openembedded/submit_for_testing.sh +++ b/schneider-openembedded/submit_for_testing.sh @@ -9,25 +9,40 @@ popd # Used by DB410C's template: export RESIZE_ROOTFS=${RESIZE_ROOTFS:-} -templates_common=(\ - dip-image.yaml \ - dip-image-dev.yaml \ - ltp-ptest.yaml \ -) +templates_common_minimal=( dip-image.yaml ) +templates_common_normal=( ${templates_common_minimal[@]} dip-image-dev.yaml ) +templates_common_full=( ${templates_common_normal[@]} ltp-ptest.yaml ) -templates_soca9=(\ -) +templates_soca9_minimal= +templates_soca9_normal=( ${templates_soca9_minimal[@]}) +templates_soca9_full=( ${templates_soca9_normal[@]} ) -templates_rzn1d=(\ - dip-image-edge.yaml \ -) +templates_rzn1d_minimal= +templates_rzn1d_normal=( ${templates_rzn1d_minimal[@]} dip-image-edge.yaml ) +templates_rzn1d_full=( ${templates_rzn1d_normal[@]} ) if [ "${DEVICE_TYPE}" == "rzn1d" ]; then - templates=( ${templates_rzn1d[@]} ${templates_common[@]} ) + templates_minimal=( ${templates_common_minimal[@]} ${templates_rzn1d_minimal[@]} ) + templates_normal=( ${templates_common_normal[@]} ${templates_rzn1d_normal[@]} ) + templates_full=( ${templates_common_full[@]} ${templates_rzn1d_full[@]} ) else - templates=( ${templates_soca9[@]} ${templates_common[@]} ) + templates_minimal=( ${templates_common_minimal[@]} ${templates_soca9_minimal[@]} ) + templates_normal=( ${templates_common_normal[@]} ${templates_soca9_normal[@]} ) + templates_full=( ${templates_common_full[@]} ${templates_soca9_full[@]} ) fi +case $TEST_LEVEL in + "minimal" | "minimum" | "min" | "3") + templates=( ${templates_minimal[@]} ) + ;; + "normal" | "2") + templates=( ${templates_normal[@]} ) + ;; + *) + templates=( ${templates_full[@]} ) + ;; +esac + for template in ${templates[@]}; do python configs/openembedded-lkft/submit_for_testing.py \ |