Skip to content
Snippets Groups Projects
Commit 057e3b51 authored by Nithin Mysore Nagesh's avatar Nithin Mysore Nagesh Committed by Ritesh Raj Sarraf
Browse files

Update pre-condition and steps for sdk-persistent


Modify the steps to run the test on SDK and enable nested virtualization
as part of pre-condition.

Signed-off-by: default avatarMN Nithin <MN.Nithin@in.bosch.com>
parent b247aeb9
No related branches found
No related tags found
1 merge request!585Update pre-condition and steps for sdk-persistent
Pipeline #666391 passed
......@@ -13,14 +13,18 @@ metadata:
description: "Tests that persistent disk can be used when upgrading the SDK."
pre-conditions:
- Python3, e.g. see
- "~https://docs.conda.io/en/latest/miniconda.html"
- "`paramiko` package should be installed for Python3 by running:"
- $ pip3 install paramiko
- "A virtual disk image (compressed or not) or a URL from which to get it from:"
- "To enable nested virtualization in Windows PC, the below line is to be executed from command prompt"
- $ <path>\VBoxManage.exe modifyvm <virtual_machine_name> --nested-hw-virt on
- |
> Edit <path> i.e path to VBoxManage.exe and <virtual_machine_name> i.e Virtual Machine name of the SDK(in which test should be performed) accordingly, for eg:
C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm "Apertis v2023 SDK" --nested-hw-virt on
- "Start the SDK (which is mentioned in the previous step) and run"
- $ sudo modprobe kvm_intel
- |
> To verify, run `cat /sys/module/kvm_intel/parameters/nested` and output should be `Y`
- "An image (ova or vdi) or a URL from which to get it from:"
- "~https://images.apertis.org/"
- "Clone of the apertis-tests repository:"
- $ git clone https://gitlab.apertis.org/pkg/apertis-tests.git
expected:
- "Test should end up with:"
......@@ -36,14 +40,12 @@ metadata:
run:
steps:
- "For Windows:"
- "Clone of the apertis-tests repository:"
- $ git clone https://gitlab.apertis.org/pkg/apertis-tests.git
- $ cp apertis-tests/psdk-test/psdk-test.ini.in apertis-tests/psdk-test/psdk-test.ini
- |
> Edit apertis-tests/psdk-test/psdk-test.ini with the correct values, for example:
vboxmanage_path = C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
- "Execute the psdk-test script from the apertis-tests repository, passing the
URL or path to the Apertis SDK VDI image, for example:"
- $ cd apertis-tests/psdk-test
- $ python ./psdk-test <apertis_sdk_image>
- $ python3 ./psdk-test <apertis_sdk_image>
- This will complete the execution of the tests, please check that the expected
result is obtained.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment