From 87b10d2a37c21040d9ebf7de87a3f12dca7c3b09 Mon Sep 17 00:00:00 2001 From: Yongqin Liu Date: Thu, 29 Jun 2023 15:46:23 +0800 Subject: [PATCH] lkft-android: add android boottime testcase like the job here: https://lkft.validation.linaro.org/scheduler/job/6601281 Signed-off-by: Yongqin Liu --- .../android-boottime-definition.jinja2 | 10 +++++ .../testcases/android-boottime.yaml | 39 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 lava_test_plans/include/android-boottime-definition.jinja2 create mode 100644 lava_test_plans/testcases/android-boottime.yaml diff --git a/lava_test_plans/include/android-boottime-definition.jinja2 b/lava_test_plans/include/android-boottime-definition.jinja2 new file mode 100644 index 00000000..b0d4d9df --- /dev/null +++ b/lava_test_plans/include/android-boottime-definition.jinja2 @@ -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 %} diff --git a/lava_test_plans/testcases/android-boottime.yaml b/lava_test_plans/testcases/android-boottime.yaml new file mode 100644 index 00000000..70fcfdc8 --- /dev/null +++ b/lava_test_plans/testcases/android-boottime.yaml @@ -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 %}