# Your first LAVA JOB Submission for an ARMv8 64 bit I.MX8MQ
device_type: IMX8M
job_name: IMX8M pipeline, first job

timeouts:
  job:
    minutes: 15
  action:
    minutes: 5
  connection:
    minutes: 2
priority: medium
visibility: public

# context allows specific values to be overridden or included
context:
  # tell the I.MX8M template which architecture is being tested
  # the template uses that to ensure that ARMv8 64 bit I.MX8MQ is executed.
  arch: arm64

metadata:
  # please change these fields when modifying this job for your own tests.
  docs-source: first-job
  docs-filename: imx8m_lava_test_shell_definition.yaml

# ACTION_BLOCK
actions:

# DEPLOY_BLOCK
#- deploy:
#    timeout:
#      minutes: 5
#    to: tmpfs
#    images:
#      rootfs:
#        image_arg: -drive format=raw,file={rootfs}
#        url: https://images.validation.linaro.org/kvm/standard/stretch-2.img.gz
#        compression: gz
#    os: debian

# BOOT_BLOCK  Boot required by Lava
- boot:
    timeout:
      minutes: 2
    method: u-boot
    #media: tmpfs
    #auto_login:
      #login_prompt: "login:"
      #username: root
    prompts: 
    - evk_8mq:/ $

# TEST_BLOCK
- test:
    timeout:
      minutes: 5
    definitions:
    - repository: https://nxf42909@bitbucket.sw.nxp.com/scm/~nxf42909/publicrepoconrad.git
      from: git
      path: master/imx8m_lava_test_shell_definition.yaml
      name: imx8m_xtest
