aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom/lava-job-definitions/testplan/pmwg.yaml
blob: 3f42c3e4372b30f4622f4ab3f923f83e9d54248f (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
{% extends device_type %}

{% set job_timeout = 90 %}
{% block metadata %}
  {{ super() }}
{% endblock metadata %}

{% block job_name %}lt-qcom-{{OS_INFO}}-pmwg-{{BUILD_NUMBER}}{% endblock job_name %}

{% block test_target %}
  {{ super() }}
    - from: inline
      repository:
        metadata:
          format: Lava-Test Test Definition 1.0
          name: ssh-enable-target-login
          description: "Enable SSH Root login on Target"
        run:
          steps:
          - echo -ne "linaro123\nlinaro123\n" | passwd root
          - echo PermitRootLogin yes >> /etc/ssh/sshd_config
          - systemctl restart ssh.service
      name: ssh-enable-target-login-inline
      path: inline/ssh-enable-target-login.yaml
      timeout:
        minutes: 5
{% endblock test_target %}

{% block test_lxc %}
- test:
    namespace: tlxc
    timeout:
      minutes: {% if job_timeout is defined %}{{ job_timeout }}{% else %}60{% endif %}
    definitions:
    - repository: https://git.linaro.org/lava-team/refactoring.git
      from: git
      path: testdefs/arm-probe.yaml
      name: arm-probe
      timeout:
        minutes: 10

    - from: inline
      repository:
        metadata:
          format: Lava-Test Test Definition 1.0
          name: prep-tests
          description: "Download energy-probe-ext instrumentation"
        run:
          steps:
          - apt-get update
          - apt-get -y install trace-cmd git
          - cd /root
          - git clone https://git.linaro.org/power/energy-probe-ext.git /energy-probe-ext
          - export TARGET_IP=$(lava-target-ip)
          - echo $TARGET_IP lava-target-ip >> /etc/hosts
      name: prep-inline
      path: inline/prep.yaml
      timeout:
        minutes: 10

    - repository: https://github.com/Linaro/test-definitions.git
      from: git
      path: automated/linux/workload-automation/workload-automation.yaml
      params:
        CONFIG: config/generic-linux-remote.py
        AGENDA: agenda/qcomlt/linux-workloads-db410c.yaml
        WA_EXTENSION_PATHS: /energy-probe-ext
        ARTIFACTORIAL_URL: https://archive.validation.linaro.org/artifacts/team/qcomlt/
        SKIP_UPGRADE_PIP_SETUPTOOLS: "True"
        WA_TAG: "v2.7.0"
        DEVLIB_TAG: "v1.1.2"
      name: linux-pmwg
      timeout:
        minutes: 60
{% endblock test_lxc %}

{% block visibility %}
  group:
    - linaro
{% endblock visibility %}

{% block settings %}
{{ super() }}
secrets:
  ARTIFACTORIAL_TOKEN: "{{ARTIFACTORIAL_TOKEN}}"
{% endblock settings %}