aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom-openembedded/submit_for_testing.sh
blob: 9f61d0339ea15a6a339c1844c0b70d12d2f589ea (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
#!/bin/bash

rm -rf configs
git clone --depth 1 http://git.linaro.org/ci/job/configs.git

# Install jinja2-cli and ruamel.yaml, required by submit_for_testing.py
pip install --user --force-reinstall jinja2-cli ruamel.yaml

# main parameters
export DEPLOY_OS=oe
export OS_INFO=openembedded-${DISTRO}-${MANIFEST_BRANCH}

# boot and rootfs parameters, BOOT_URL comes from builders.sh
# and has not compression
export BOOT_URL_COMP=
export LXC_BOOT_FILE=$(basename ${BOOT_URL})

export RESIZE_ROOTFS=

case "${MACHINE}" in
  dragonboard-410c|dragonboard-820c)
    export DEVICE_TYPE="${MACHINE}"

    # Tests settings, thermal fails in db410c
    export IGNORE_TESTS_REPO="https://git.linaro.org/landing-teams/working/qualcomm/configs.git"
    export GST_IGNORE_TESTS_REPO=${IGNORE_TESTS_REPO}
    export PIGLIT_IGNORE_TESTS_REPO=${IGNORE_TESTS_REPO}
    if [ ${DEVICE_TYPE} = "dragonboard-410c" ]; then
      export PM_QA_TESTS="cpufreq cpuidle cpuhotplug cputopology"
      export WLAN_DEVICE="wlan0"
      export WLAN_TIME_DELAY="0s"
      export ETH_DEVICE="eth0"
      export GST_IGNORE_TESTS_FILE="qa/gst-validate/db410c.ignore"
      export PIGLIT_IGNORE_TESTS_FILE="qa/piglit/db410c.ignore"

      export BOOT_OS_PROMPT=\'root@dragonboard-410c:~#\'
    elif [ ${DEVICE_TYPE} = "dragonboard-820c" ]; then
      export PM_QA_TESTS="cpufreq cputopology"
      export WLAN_DEVICE="wlp1s0"
      export WLAN_TIME_DELAY="15s"
      export ETH_DEVICE="enP2p1s0"
      export GST_IGNORE_TESTS_FILE="qa/gst-validate/db820c.ignore"
      export PIGLIT_IGNORE_TESTS_FILE="qa/piglit/db820c.ignore"

      export BOOT_OS_PROMPT=\'root@dragonboard-820c:~#\'
    fi
    export SMOKE_TESTS="pwd, uname -a, ip a, vmstat, lsblk"
    export PTEST_EXCLUDE="bluez5 libxml2 parted python strace"

    case "${DISTRO}" in
      rpb)
        export ROOTFS_URL=${ROOTFS_SPARSE_BUILD_URL}
        export ROOTFS_URL_COMP="gz"
        export LXC_ROOTFS_FILE=$(basename ${ROOTFS_URL} .gz)
        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 qcomlt \
            --qa-server-project openembedded-rpb-${MANIFEST_BRANCH} \
            --env-suffix="-${DISTRO}" \
            --git-commit ${BUILD_NUMBER} \
            --template-path configs/lt-qcom/lava-job-definitions \
            --template-base-pre base_template.yaml \
            --template-names template.yaml template-wifi.yaml template-bt.yaml
      ;;
      rpb-wayland)
        echo "Currently no tests for rpb-wayland"
      ;;
    esac
    ;;
  *)
    echo "Skip DEVICE_TYPE for ${MACHINE}"
    ;;
esac