summaryrefslogtreecommitdiff
path: root/units
diff options
Diffstat (limited to 'units')
-rw-r--r--units/kernel-snap/category.pxu3
-rw-r--r--units/kernel-snap/jobs.pxu17
-rw-r--r--units/kernel-snap/test-plan.pxu22
3 files changed, 42 insertions, 0 deletions
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: