-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lkft-android: add android boottime testcase
like the job here: https://lkft.validation.linaro.org/scheduler/job/6601281 Signed-off-by: Yongqin Liu <[email protected]>
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
lava_test_plans/include/android-boottime-definition.jinja2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% 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 %} | ||
- boot: | ||
{% 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 %} |