# Copyright (C) 2017, Codethink, Ltd., Robert Marshall <robert.marshall@codethink.co.uk>
# Copyright (C) 2017, Toshiba corp., Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
# SPDX-License-Identifier:	AGPL-3.0
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

# You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

device_type: renesas-iwg20m
job_name: Kernelci version tested cip4.4.126/v4.4.126-cip22/arm/shmobile_defconfig (this time it is!)
timeouts:
  job:
    minutes: 10
  action:
    minutes: 5
  connection:
    minutes: 5
priority: medium
visibility: public


# ACTION_BLOCK
actions:
- deploy:
    timeout:
      minutes: 5
    to: tftp
    os: oe
    kernel:
      #url: http://localhost:8010/iwg20m/uImage
      url: http://localhost:8010/cip-healthcheck/cip4.4.126/v4.4.126-cip22/arm/shmobile_defconfig/zImage
      type: zimage
    ramdisk:
      #url: http://localhost:8010/initramfs/initramfs.cpio.gz
      url: http://localhost:8010/iwg20m/core-image-minimal-iwg20m.cpio.gz
      compression: gz
      # the bootloader needs a u-boot header on the modified ramdisk
      add-header: u-boot
    dtb:
      #url: http://localhost:8010/iwg20m/r8a7743-iwg20m_q7.dtb
      url: http://localhost:8010/cip-healthcheck/cip4.4.126/v4.4.126-cip22/arm/shmobile_defconfig/dtbs/r8a7743-iwg20d-q7.dtb
# BOOT_BLOCK
- boot:
    auto_login:
      login_prompt: '\(none\) login: '
      username: root
    prompts:
      - 'cip# '
    method: u-boot
    commands: ramdisk
    type: uimage
    timeout:
      minutes: 5

# TEST_BLOCK
- test:
    timeout:
      minutes: 5
    definitions:
    - repository:
        metadata:
          format: Lava-Test Test Definition 1.0
          name: kernel-version-basic
          version: "1.0"
          description: "check kernel version"
          os:
            - oe
          scope:
            - functional
        run:
          steps:
            - lava-test-case uname --shell uname -a
      from: inline
      name: kernel-version-inline
      path: inline/kernel-version-basic.yaml

notify:
  criteria:
    status: complete
  verbosity: verbose
  recipients:
  - to:
     method: email
     email: cip-testing-results@lists.cip-project.org
     
