From 83a6a879f5fd80a053803f7d407603565f569350 Mon Sep 17 00:00:00 2001 From: Jonathan Cave Date: Tue, 20 Aug 2019 16:31:58 +0100 Subject: kernel-snap: import from p-p-snappy --- units/kernel-snap/category.pxu | 3 +++ units/kernel-snap/jobs.pxu | 17 +++++++++++++++++ units/kernel-snap/test-plan.pxu | 22 ++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 units/kernel-snap/category.pxu create mode 100644 units/kernel-snap/jobs.pxu create mode 100644 units/kernel-snap/test-plan.pxu diff --git a/units/kernel-snap/category.pxu b/units/kernel-snap/category.pxu new file mode 100644 index 00000000..361df991 --- /dev/null +++ b/units/kernel-snap/category.pxu @@ -0,0 +1,3 @@ +unit: category +id: kernel-snap +_name: Kernel snap tests diff --git a/units/kernel-snap/jobs.pxu b/units/kernel-snap/jobs.pxu new file mode 100644 index 00000000..5b573fd4 --- /dev/null +++ b/units/kernel-snap/jobs.pxu @@ -0,0 +1,17 @@ + +id: kernel-snap/booted-kernel-matches-current +category_id: kernel-snap +_summary: The booted kernel image matches image in current kernel snap +_description: + On some Ubuntu Core deviecs it is necessary for the kernel image to be + extracted from the kernel snap and placed in the boot partition (notably + device using full disk encryption). This checks the images are in sync. +plugin: shell +user: root +estimated_duration: 2.0 +command: + booted_kernel_tests.py +imports: + from com.canonical.certification import ubuntu_core_features +requires: + ubuntu_core_features.force_kernel_extraction == 'True' diff --git a/units/kernel-snap/test-plan.pxu b/units/kernel-snap/test-plan.pxu new file mode 100644 index 00000000..7bd4dc8a --- /dev/null +++ b/units/kernel-snap/test-plan.pxu @@ -0,0 +1,22 @@ + +id: kernel-snap-full +unit: test plan +_name: Kernel Snap tests +_description: Kernel Snap test for Ubuntu Core devices +include: +nested_part: + kernel-snap-manual + kernel-snap-automated + +id: kernel-snap-automated +unit: test plan +_name: Automated Kernel Snap tests +_description: Automated Kernel Snap tests for Ubuntu Core devices +include: + kernel-snap/booted-kernel-matches-current + +id: kernel-snap-manual +unit: test plan +_name: Manual Kernel Snap tests +_description: Manual Kernel Snap tests for Ubuntu Core devices +include: -- cgit v1.2.3