diff options
author | Ana Guerrero Lopez <ana.guerrero@collabora.com> | 2018-06-27 11:28:42 +0200 |
---|---|---|
committer | Matt Hart <github@blacklabsystems.com> | 2018-07-05 09:43:44 +0100 |
commit | 27324a70870ebd64cfd5d23360be7911cfcdee0d (patch) | |
tree | 4a356300c71a3bff3432bfa81806142b4592a387 /templates | |
parent | 0017f70d410de45e8b56484ffc4daa1f9a42d568 (diff) |
Add cros-ec test plan
Initial test plan that checks for /dev/cros_ec
This allows to know if the driver probe has run successfully and the
kernel has been able to establish communication with the embedded controller.
Signed-off-by: Ana Guerrero Lopez <ana.guerrero@collabora.com>
Diffstat (limited to 'templates')
4 files changed, 39 insertions, 0 deletions
diff --git a/templates/cros-ec/cros-ec.ini b/templates/cros-ec/cros-ec.ini new file mode 100644 index 0000000..3db55cd --- /dev/null +++ b/templates/cros-ec/cros-ec.ini @@ -0,0 +1,6 @@ +[cros-ec] +suite: cros-ec +set: cros-ec +description: Check the presence of the device file /dev/cros_ec +type: functional +defconfigs: arm-multi_v7_defconfig,arm64-defconfig,x86-x86_64_defconfig diff --git a/templates/cros-ec/cros-ec.jinja2 b/templates/cros-ec/cros-ec.jinja2 new file mode 100644 index 0000000..f0c5b71 --- /dev/null +++ b/templates/cros-ec/cros-ec.jinja2 @@ -0,0 +1,19 @@ +- test: + timeout: + minutes: 5 + definitions: + - repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: cros-ec + description: "check /dev/cros_ec" + os: + - oe + scope: + - functional + run: + steps: + - lava-test-case cros-ec-presence --shell test -c /dev/cros_ec + from: inline + name: cros-ec + path: inline/cros-ec.yaml diff --git a/templates/cros-ec/generic-depthcharge-tftp-ramdisk-cros-ec-template.jinja2 b/templates/cros-ec/generic-depthcharge-tftp-ramdisk-cros-ec-template.jinja2 new file mode 100644 index 0000000..b520092 --- /dev/null +++ b/templates/cros-ec/generic-depthcharge-tftp-ramdisk-cros-ec-template.jinja2 @@ -0,0 +1,7 @@ +{% extends 'boot/generic-depthcharge-tftp-ramdisk-template.jinja2' %} +{% block actions %} +{{ super () }} + +{% include 'cros-ec/cros-ec.jinja2' %} + +{% endblock %} diff --git a/templates/cros-ec/generic-uboot-tftp-ramdisk-cros-ec-template.jinja2 b/templates/cros-ec/generic-uboot-tftp-ramdisk-cros-ec-template.jinja2 new file mode 100644 index 0000000..f1e224a --- /dev/null +++ b/templates/cros-ec/generic-uboot-tftp-ramdisk-cros-ec-template.jinja2 @@ -0,0 +1,7 @@ +{% extends 'boot/generic-uboot-tftp-ramdisk-template.jinja2' %} +{% block actions %} +{{ super () }} + +{% include 'cros-ec/cros-ec.jinja2' %} + +{% endblock %} |