Skip to content

Commit

Permalink
lkft-android: add android boottime testcase
Browse files Browse the repository at this point in the history
like the job here:
    https://lkft.validation.linaro.org/scheduler/job/6601281

Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
  • Loading branch information
liuyq committed Jul 20, 2023
1 parent 899048c commit 6638a6e
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lava_test_plans/include/android-boottime-definition.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- repository: {{ TEST_DEFINITIONS_REPOSITORY }}
from: git
path: automated/android/boottime/boottime.yaml
name: {{ testname }}
{% if test_operation is defined %}
params:
ANDROID_VERSION: master
OPERATION: {{ test_operation }}
COLLECT_NO: "{{ test_index }}"
{% endif %}
38 changes: 38 additions & 0 deletions lava_test_plans/testcases/android-boottime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% extends "testcases/master/template-master.jinja2" %}

{% set test_timeout = 210 %}
{% set boottime_timeout = 15 %}
{% set test_name = "boottime" %}

{% block test_target %}

{% with test_timeout=boottime_timeout %}
{% include "include/test_target.jinja2" %}
{% endwith %}

{% with testname="fresh-install", test_operation="COLLECT", test_index="0" %}
{% include "include/android-boottime-definition.jinja2" %}
{% endwith %}
{% with testname="boottime-fresh-install", test_operation="ANALYZE", test_index="0" %}
{% include "include/android-boottime-definition.jinja2" %}
{% endwith %}

{% for index in range(1,8) %}
{% with FASTBOOT_COMMANDS=Null %}
{% include "include/boot_target/boot_target.jinja2" %}
{% endwith %}
{% with test_timeout=boottime_timeout %}
{% include "include/test_target.jinja2" %}
{% endwith %}

{% with testname="boottime-" + index|string, test_operation="COLLECT", test_index=index %}
{% include "include/android-boottime-definition.jinja2" %}
{% endwith %}
{% if index == 7 %}
{% with testname="boottime-reboot", test_operation="ANALYZE", test_index=index %}
{% include "include/android-boottime-definition.jinja2" %}
{% endwith %}
{% endif %}
{% endfor %}

{% endblock test_target %}

0 comments on commit 6638a6e

Please sign in to comment.