device_type: hi6220-hikey-r2
job_name: lkft-android-android-4.19-q-hikey-121-cts
priority: medium
visibility:
  group:
  - lkft
timeouts:
  job:
    minutes: 360
  action:
    minutes: 15
  connection:
    minutes: 2
metadata:
  android.build: '121'
  android.name: lkft-hikey-4.19-rc
  android.url: http://testdata.linaro.org/lkft/aosp-stable/android-lcr-reference-hikey-q/11/
  android.version: android-mainline-10.0.0_r1
  git branch: android-4.19-q-hikey
  git repo: https://github.com/tom-gall/hikey-linaro
  git commit: b06cec08743be6234dfb7ff4f6c5a0692138e974
  git describe: v4.19.114-13-gb06cec08743b
  build-url: https://ci.linaro.org/job/lkft-hikey-4.19-rc/121/
  toolchain: clang-r377782b
  series: lkft
  cts-url: http://testdata.linaro.org/lkft/aosp-stable/android-cts/aosp-arm64-userdebug/25/android-cts-10.0_r2//android-cts.zip
  cts-manifest: http://testdata.linaro.org/lkft/aosp-stable/android-cts/aosp-arm64-userdebug/25/android-cts-10.0_r2//pinned-manifest.xml
  cts-version: android-cts-10.0_r2
  cts-plan: cts-lkft
secrets:
  ARTIFACTORIAL_TOKEN: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  AP_SSID: xxxxxxxxxxxx
  AP_KEY: xxxxxxxx
actions:
- deploy:
    timeout:
      minutes: 15
    to: fastboot
    docker:
      image: terceiro/android-platform-tools
    images:
      ptable:
        url: http://images.validation.linaro.org/snapshots.linaro.org/96boards/reference-platform/components/uefi-staging/69/hikey/release/ptable-aosp-8g.img
        reboot: hard-reset
      boot:
        reboot: hard-reset
        url: http://snapshots.linaro.org/android/lkft/lkft-hikey-4.19-rc/121//lkft-hikey-android-10.0-gsi-4.19-q-rc-boot.img.xz
        compression: xz
      userdata:
        url: http://testdata.linaro.org/lkft/aosp-stable/android-lcr-reference-hikey-q/11//userdata.img.xz
        compression: xz
      system:
        url: http://snapshots.linaro.org/android/lkft/lkft-hikey-4.19-rc/121//lkft-hikey-android-10.0-gsi-4.19-q-rc-system.img.xz
        compression: xz
      vendor:
        url: http://testdata.linaro.org/lkft/aosp-stable/android-lcr-reference-hikey-q/11//vendor.img.xz
        compression: xz
- boot:
    docker:
      image: terceiro/android-platform-tools
    prompts:
    - root@(.*):/#
    - hikey:/
    - console:/
    - :/
    timeout:
      minutes: 15
    method: fastboot
- test:
    docker:
      image: terceiro/android-platform-tools
    timeout:
      minutes: 20
    definitions:
    - from: inline
      path: android-boot.yaml
      name: android-boot
      repository:
        metadata:
          format: Lava-Test Test Definition 1.0
          name: android-boot
          description: android-boot
        run:
          steps:
          - lava-test-case "android-boot-wait-for-device" --shell adb wait-for-device
          - lava-test-case "android-boot-sleep-2mins" --shell adb shell sleep 120
          - lava-test-case "android-boot" --shell adb shell getprop sys.boot_completed
          - lava-test-case "android-boot-screepcap" --shell adb shell screencap -p
            /data/local/tmp/screencap.png
- test:
    docker:
      image: terceiro/android-platform-tools
    timeout:
      minutes: 360
    definitions:
    - repository: https://git.linaro.org/qa/test-definitions.git
      from: git
      path: automated/android/noninteractive-tradefed/tradefed.yaml
      params:
        TEST_PARAMS: cts-lkft --disable-reboot
        TEST_URL: http://testdata.linaro.org/lkft/aosp-stable/android-cts/aosp-arm64-userdebug/25/android-cts-10.0_r2//android-cts.zip
        TEST_PATH: android-cts
        RESULTS_FORMAT: atomic
        ANDROID_VERSION: android-mainline-10.0.0_r1
      name: cts-lkft
