From 9068f951000b61abdc39167bb6e390d2aa9d1411 Mon Sep 17 00:00:00 2001 From: Peter Senna Tschudin <peter.senna@collabora.com> Date: Wed, 26 Jun 2019 13:02:03 +0200 Subject: [PATCH] sdk-persistent-disk: Manual test for the persistent disk functionality Add a test to check if the persistent disk functionality is working properly by: - Installing a sysroot on the old SDK - Configuring the old SDK to use the persistent disk - Configuring the new SDK to use the persistent disk - Check that the sysroot is available on the new SDK Signed-off-by: Peter Senna Tschudin <peter.senna@collabora.com> --- test-cases/sdk-persistent-disk.yaml | 52 +++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 test-cases/sdk-persistent-disk.yaml diff --git a/test-cases/sdk-persistent-disk.yaml b/test-cases/sdk-persistent-disk.yaml new file mode 100644 index 0000000..de2c102 --- /dev/null +++ b/test-cases/sdk-persistent-disk.yaml @@ -0,0 +1,52 @@ +metadata: + name: sdk-persistent-disk + format: "Apertis Test Definition 1.0" + image-types: + basesdk: [ amd64 ] + sdk: [ amd64 ] + image-deployment: + - APT + type: compatibility + exec-type: manual + priority: critical + maintainer: "Apertis Project" + description: "Tests that persistent disk can be used when upgrading the SDK." + + pre-conditions: + - "Download the virtual machine image for the latest SDK release from:" + - "~https://images.apertis.org/" + - "Create the first virtual machine and name it old-sdk or old-basesdk" + - "Create the second virtual machine and name it new-sdk or new-basesdk" + - "Instructions on how to use VirtualBox and psdk for persistent disk:" + - "~https://developer.apertis.org/latest/sdk-usage.html#persistent-workspace" + + expected: + - "psdk should indicate that 'This SDK is currently using the persistent disk' when attempting to confirm if the SDK is using the persistent disk" + - "'ade sysroot update' should indicate that the Installed version is already up-to-date." + +run: + steps: + - "The following steps are for the SDK virtual machine named with old:" + - "Power on the virtual machine, and run on a terminal:" + - $ ade sysroot install + - "Power off the virtual machine" + - "On VirtualBox add the persistent disk to the SDK virtual machine:" + - "~https://developer.apertis.org/latest/sdk-usage.html#virtualbox-adding-the-persistent-disk-to-the-old-sdk" + - "Power on the virtual machine" + - "Use psdk to initialize the empty disk and to configure the SDK to use it:" + - "~https://developer.apertis.org/latest/sdk-usage.html#preparing-the-persistent-disk-on-the-old-sdk" + - "The SDK will reboot when the configuration is completed. After the reboot click on psdk icon again to confirm that the persistent disk is in use" + - "Run on a terminal:" + - $ ade sysroot update + - "Power off the virtual machine" + + - "The following steps are for the SDK virtual machine named with new" + - "On VirtualBox add the same persistent disk used on previous steps to the SDK virtual machine:" + - "~https://developer.apertis.org/latest/sdk-usage.html#virtualbox-adding-the-persistent-disk-to-the-new-sdk" + - "Power on the virtual machine" + - "Use psdk to configure the SDK to use the persistent disk:" + - "~https://developer.apertis.org/latest/sdk-usage.html#using-the-persistent-disk-on-the-new-sdk" + - "The SDK will reboot when the configuration is completed. After the reboot click on psdk icon again to confirm that the persistent disk is in use" + - "Run on a terminal:" + - $ ade sysroot update + - "Power off the virtual machine" -- GitLab