From 2088bd633741e4cc0cf22cde2516c03cddc1cd2c Mon Sep 17 00:00:00 2001 From: PMR Date: Sat, 28 Sep 2019 11:30:32 +0200 Subject: Import plainbox-provider-checkbox_0.49.0~rc4.orig.tar_gz --- units/pig/jobs.pxu | 8 ++++++++ units/pig/resource.pxu | 5 +++++ units/pig/test-plan.pxu | 16 ++++++++++++++++ units/submission/jobs.pxu | 6 ++---- 4 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 units/pig/jobs.pxu create mode 100644 units/pig/resource.pxu create mode 100644 units/pig/test-plan.pxu (limited to 'units') diff --git a/units/pig/jobs.pxu b/units/pig/jobs.pxu new file mode 100644 index 0000000..2bbcaa6 --- /dev/null +++ b/units/pig/jobs.pxu @@ -0,0 +1,8 @@ +id: monitor/pig-edid +category_id: com.canonical.plainbox::monitor +plugin: shell +estimated_duration: 60 +_summary: Check if the system automatically changes the resolution based on EDID +requires: pig.hdmi_bridge == 'installed' +environ: PIG_HOST +command: edid_cycle.py $PIG_HOST diff --git a/units/pig/resource.pxu b/units/pig/resource.pxu new file mode 100644 index 0000000..eb62e22 --- /dev/null +++ b/units/pig/resource.pxu @@ -0,0 +1,5 @@ +id: pig +plugin: resource +_summary: Get Pig's capabilities +environ: PIG_HOST +command: ssh -q -o 'StrictHostKeyChecking=no' $PIG_HOST /snap/bin/pigbox capabilities diff --git a/units/pig/test-plan.pxu b/units/pig/test-plan.pxu new file mode 100644 index 0000000..071a927 --- /dev/null +++ b/units/pig/test-plan.pxu @@ -0,0 +1,16 @@ +id: pig-enabled-full +unit: test plan +_name: Tests using Pi Testing Rig +_description: Tests using Pi Testing Rig +include: +nested_part: + pig-enabled-automated + +id: pig-enabled-automated +unit: test plan +_name: Tests using Pi Testing Rig (Automated) +_description: Tests using Pi Testing Rig (Automated) +include: + monitor/pig-edid +bootstrap_include: + pig diff --git a/units/submission/jobs.pxu b/units/submission/jobs.pxu index a2f5382..b433fd3 100644 --- a/units/submission/jobs.pxu +++ b/units/submission/jobs.pxu @@ -22,10 +22,8 @@ requires: dmi_present.state == 'supported' user: root command: - dmidecode -t bios -t system | python3 -m plainbox dev parse dmidecode | \ - jq '[.[0]._attributes + - {"category": .[0].category}, .[1]._attributes + - {"category": .[1].category}]' + dmidecode | python3 -m plainbox dev parse dmidecode | \ + jq '[.[] | ._attributes + {"category": .category}]' estimated_duration: 1 _description: Attaches dmidecode output _summary: Attaches json dumps of udev_resource raw dmi devices -- cgit v1.2.3