From 5605a1ad8664fcb4dfd2ee0b70b93aa62e0292b3 Mon Sep 17 00:00:00 2001 From: Maciej Kisielewski Date: Thu, 12 Jul 2018 15:15:44 +0200 Subject: add usb type-c to ethernet test Signed-off-by: Maciej Kisielewski --- units/usb/test-plan.pxu | 1 + units/usb/usb-c.pxu | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) (limited to 'units') diff --git a/units/usb/test-plan.pxu b/units/usb/test-plan.pxu index 27a0616..63c62b8 100644 --- a/units/usb/test-plan.pxu +++ b/units/usb/test-plan.pxu @@ -69,6 +69,7 @@ include: usb-c/insert certification-status=blocker usb-c/storage-automated certification-status=blocker usb-c/remove certification-status=blocker + usb-c/c-to-ethernet-adapter-insert id: after-suspend-usb-cert-full unit: test plan diff --git a/units/usb/usb-c.pxu b/units/usb/usb-c.pxu index d2004c2..cf7c5f6 100644 --- a/units/usb/usb-c.pxu +++ b/units/usb/usb-c.pxu @@ -187,3 +187,19 @@ requires: manifest.has_usb_type_c == 'True' estimated_duration: 30 +id: usb-c/c-to-ethernet-adapter-insert +plugin: user-interact +category_id: com.canonical.plainbox::usb +imports: from com.canonical.plainbox import manifest +requires: manifest.has_usb_type_c == 'True' +command: + net_if_watcher.py +_summary: Check if USB Type-C to Ethernet adapter works +_purpose: + This test will check if system detects network interface of the Type-C to + ethernet adapter. +_steps: + 1. Prepare USB Type-C to Ethernet adapter + 2. Start the test + 3. When the message "INSERT NOW" is shown, plug in the adapter to Type-C port +estimated_duration: 20 -- cgit v1.2.3