diff options
author | Jonathan Cave <jonathan.cave@canonical.com> | 2019-08-20 17:12:50 +0100 |
---|---|---|
committer | Jonathan Cave <jonathan.cave@canonical.com> | 2019-08-21 11:04:44 +0100 |
commit | 9303ddf53a533316e98118c791bbed81d06d5998 (patch) | |
tree | ebfa5fbe6bded1541f9671865c2997ca2f051fe6 | |
parent | 20ea581fa697673cdca016ca356082ff03b08e5c (diff) |
serial: import from p-p-snappy
-rw-r--r-- | units/serial/category.pxu | 3 | ||||
-rw-r--r-- | units/serial/jobs.pxu | 33 | ||||
-rw-r--r-- | units/serial/test-plan.pxu | 45 |
3 files changed, 81 insertions, 0 deletions
diff --git a/units/serial/category.pxu b/units/serial/category.pxu new file mode 100644 index 00000000..148bfe1b --- /dev/null +++ b/units/serial/category.pxu @@ -0,0 +1,3 @@ +unit: category +id: serial +_name: Serial Port diff --git a/units/serial/jobs.pxu b/units/serial/jobs.pxu new file mode 100644 index 00000000..1a82448c --- /dev/null +++ b/units/serial/jobs.pxu @@ -0,0 +1,33 @@ +id: serial/rs232-console +_summary: Serial debugging console is enabled and operational +_purpose: + Check user can log into system through serial port from another machine +_steps: + 1. Connect USB to db9 null modem adapter cable to serial port of test machine + 2. Connect the cable to USB port of another ubuntu machine (client) + 3. Install screen on client (if not done in Prerequisite) + 4. Execute following command on client: + sudo screen /dev/ttyUSB0 + 5. Start getty service on test machine: + sudo systemctl start getty@[rs232 device, ex. /dev/ttyS0].service + 6. Log into the test machine from terminal on client +_verification: + 1. Output to client is fine after getty service started + 2. Log into test machine from terminal on client successfully +plugin: manual +flags: also-after-suspend +category_id: serial +estimated_duration: 600 + +unit: template +template-resource: serial_ports_static +template-unit: job +id: serial/loopback-{dev} +_summary: Serial loopback test of {dev} +_purpose: Check if serial port is working hardwired +plugin: shell +user: root +command: serial_loopback.py {dev} +flags: preserve-locale preserve-cwd also-after-suspend +category_id: serial +estimated_duration: 3.0 diff --git a/units/serial/test-plan.pxu b/units/serial/test-plan.pxu new file mode 100644 index 00000000..2369427b --- /dev/null +++ b/units/serial/test-plan.pxu @@ -0,0 +1,45 @@ +id: serial-full +unit: test plan +_name: Serial tests +_description: QA serial tests for Snappy Ubuntu Core devices +include: +nested_part: + serial-manual + serial-automated + +id: serial-manual +unit: test plan +_name: Manual serial tests +_description: Manual serial tests for Snappy Ubuntu Core devices +include: + serial/rs232-console + +id: serial-automated +unit: test plan +_name: Automated serial tests +_description: Automated serial tests for Snappy Ubuntu Core devices +include: + serial/loopback-.* + +id: after-suspend-serial-full +unit: test plan +_name: Serial tests (after suspend) +_description: QA serial tests for Snappy Ubuntu Core devices +include: +nested_part: + after-suspend-serial-manual + after-suspend-serial-automated + +id: after-suspend-serial-manual +unit: test plan +_name: Manual serial tests (after suspend) +_description: Manual serial tests for Snappy Ubuntu Core devices +include: + after-suspend-serial/rs232-console + +id: after-suspend-serial-automated +unit: test plan +_name: Automated serial tests (after suspend) +_description: Automated serial tests for Snappy Ubuntu Core devices +include: + after-suspend-serial/loopback-.* |