mbox series

[isar-cip-core,v1,0/4] Add additional test cases

Message ID 20250312131403.1360421-1-Shivanand.Kunijadar@toshiba-tsip.com (mailing list archive)
Headers show
Series Add additional test cases | expand

Message

Shivanand Kunijadar March 12, 2025, 1:13 p.m. UTC
Add the test cases to cover the different scenarios of SWUpdate and 
secure boot features to improve the test coverage. The below test
scenarios are implemented, 
* Unauthorized kernel image
* Unauthorized bootloader image
* Corrupt .swu file
* Apply the same image's .swu file(@config_check@)
* Corrupt the artifact of .swu file
* Reboot without confirming the successful update using "bg_setenv -c"

Shivanand Kunijadar (4):
  Add additional test cases for swupdate and secure boot in LAVA
  Update script to generate additional LAVA job defintion
  .gitlab-ci.yml: Update CI to add additional jobs
  .gitlab-ci.ymll: Enable security_test option for base images

 .gitlab-ci.yml                                | 147 ++++++++++++++++++
 scripts/submit_lava.sh                        |  64 ++++++++
 tests/templates/secureboot_negative_test.yml  |  81 ++++++++++
 .../secureboot_unsigned_bootloader_steps.yml  |   7 +
 .../secureboot_unsigned_kernel_steps.yml      |   7 +
 .../swupdate_corrupt_swu_artifact_steps.yml   |   9 ++
 .../templates/swupdate_corrupt_swu_steps.yml  |   6 +
 tests/templates/swupdate_negative_test.yml    |  89 +++++++++++
 .../swupdate_reboot_without_confirm.yml       |  43 +++++
 tests/templates/swupdate_same_uuid_steps.yml  |   9 ++
 tests/templates/swupdate_template.yml         |   2 +
 11 files changed, 464 insertions(+)
 create mode 100644 tests/templates/secureboot_negative_test.yml
 create mode 100644 tests/templates/secureboot_unsigned_bootloader_steps.yml
 create mode 100644 tests/templates/secureboot_unsigned_kernel_steps.yml
 create mode 100644 tests/templates/swupdate_corrupt_swu_artifact_steps.yml
 create mode 100644 tests/templates/swupdate_corrupt_swu_steps.yml
 create mode 100644 tests/templates/swupdate_negative_test.yml
 create mode 100644 tests/templates/swupdate_reboot_without_confirm.yml
 create mode 100644 tests/templates/swupdate_same_uuid_steps.yml

Comments

Jan Kiszka March 13, 2025, 8:05 a.m. UTC | #1
On 12.03.25 14:13, Shivanand Kunijadar wrote:
> Add the test cases to cover the different scenarios of SWUpdate and 
> secure boot features to improve the test coverage. The below test
> scenarios are implemented, 
> * Unauthorized kernel image
> * Unauthorized bootloader image
> * Corrupt .swu file
> * Apply the same image's .swu file(@config_check@)
> * Corrupt the artifact of .swu file
> * Reboot without confirming the successful update using "bg_setenv -c"
> 
> Shivanand Kunijadar (4):
>   Add additional test cases for swupdate and secure boot in LAVA
>   Update script to generate additional LAVA job defintion
>   .gitlab-ci.yml: Update CI to add additional jobs
>   .gitlab-ci.ymll: Enable security_test option for base images
> 
>  .gitlab-ci.yml                                | 147 ++++++++++++++++++
>  scripts/submit_lava.sh                        |  64 ++++++++
>  tests/templates/secureboot_negative_test.yml  |  81 ++++++++++
>  .../secureboot_unsigned_bootloader_steps.yml  |   7 +
>  .../secureboot_unsigned_kernel_steps.yml      |   7 +
>  .../swupdate_corrupt_swu_artifact_steps.yml   |   9 ++
>  .../templates/swupdate_corrupt_swu_steps.yml  |   6 +
>  tests/templates/swupdate_negative_test.yml    |  89 +++++++++++
>  .../swupdate_reboot_without_confirm.yml       |  43 +++++
>  tests/templates/swupdate_same_uuid_steps.yml  |   9 ++
>  tests/templates/swupdate_template.yml         |   2 +
>  11 files changed, 464 insertions(+)
>  create mode 100644 tests/templates/secureboot_negative_test.yml
>  create mode 100644 tests/templates/secureboot_unsigned_bootloader_steps.yml
>  create mode 100644 tests/templates/secureboot_unsigned_kernel_steps.yml
>  create mode 100644 tests/templates/swupdate_corrupt_swu_artifact_steps.yml
>  create mode 100644 tests/templates/swupdate_corrupt_swu_steps.yml
>  create mode 100644 tests/templates/swupdate_negative_test.yml
>  create mode 100644 tests/templates/swupdate_reboot_without_confirm.yml
>  create mode 100644 tests/templates/swupdate_same_uuid_steps.yml
> 

Thanks, applied.

Jan