public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 00/11] Support running custom commands in VM
@ 2023-01-13  7:19 Uladzimir Bely
  2023-01-13  7:19 ` [PATCH 01/11] testsuite: Fix failing hostname service in qemu guest Uladzimir Bely
                   ` (10 more replies)
  0 siblings, 11 replies; 25+ messages in thread
From: Uladzimir Bely @ 2023-01-13  7:19 UTC (permalink / raw)
  To: isar-users

VM run tests implementation in Isar testsuite allows only parsing
virtual machine boot logs, so the functionality is limited.

This patchset implements running custom commands on VM running in qemu
that allows to implement any custom tests.

The concept is the following:

For running custom tests SSH is used. So:

 - SSH server on machine should be configured, so `sshd-regen-keys`
package needs to be installed in the image.

 - Ethernet interface on machine should be automatically brought up
to make host-to-vm port forwarding working.

 - User in VM we use to connect via SSH should have public SSH key
in his `~/.ssh/` directory preinstalled.

 - Since base isar image don't have this included, custom image name
for vm run tests should be supported. This also allows to make reusing
Isar testsuite in downstream simpler.

Uladzimir Bely (11):
  testsuite: Fix failing hostname service in qemu guest
  testsuite: Allow custom image names in start_vm.py
  testsuite: Fix terminal broken after run test executed
  testsuite: Add SSH key pair for using in CI
  image-account-extension: Add copy-ci-key flag for user
  meta-isar: Fix PCI bus initialization in qemuarm machine
  testsuite: Use random free port for qemu SSH forwarding
  testsuite: Support running custom commands in VM
  meta-isar: Use a separate image recipe in CI
  isar-image-ci: Make ethernet inerface auto bring up in ubuntu-focal
  testsuite: Run custom commands on some qemu targets

 meta-isar/conf/machine/qemuarm.conf           |  2 +-
 .../recipes-core/images/isar-image-ci.bb      | 38 ++++++++++
 meta/classes/image-account-extension.bbclass  | 14 +++-
 testsuite/cibuilder.py                        | 69 ++++++++++++++++--
 testsuite/citest.py                           | 72 +++++++++++++++----
 testsuite/keys/ssh/id_rsa                     | 38 ++++++++++
 testsuite/keys/ssh/id_rsa.pub                 |  1 +
 testsuite/start_vm.py                         | 31 ++++----
 8 files changed, 230 insertions(+), 35 deletions(-)
 create mode 100644 meta-isar/recipes-core/images/isar-image-ci.bb
 create mode 100644 testsuite/keys/ssh/id_rsa
 create mode 100644 testsuite/keys/ssh/id_rsa.pub

-- 
2.20.1


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2023-02-08 13:04 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13  7:19 [PATCH 00/11] Support running custom commands in VM Uladzimir Bely
2023-01-13  7:19 ` [PATCH 01/11] testsuite: Fix failing hostname service in qemu guest Uladzimir Bely
2023-01-13  7:19 ` [PATCH 02/11] testsuite: Allow custom image names in start_vm.py Uladzimir Bely
2023-01-24  6:59   ` Henning Schild
2023-01-13  7:19 ` [PATCH 03/11] testsuite: Fix terminal broken after run test executed Uladzimir Bely
2023-01-13  7:19 ` [PATCH 04/11] testsuite: Add SSH key pair for using in CI Uladzimir Bely
2023-01-13  7:19 ` [PATCH 05/11] image-account-extension: Add copy-ci-key flag for user Uladzimir Bely
2023-01-24  7:09   ` Henning Schild
2023-01-24  7:18     ` Henning Schild
2023-01-25  7:36       ` Uladzimir Bely
2023-01-25  8:45         ` Henning Schild
2023-01-13  7:19 ` [PATCH 06/11] meta-isar: Fix PCI bus initialization in qemuarm machine Uladzimir Bely
2023-02-08 13:03   ` Uladzimir Bely
2023-01-13  7:19 ` [PATCH 07/11] testsuite: Use random free port for qemu SSH forwarding Uladzimir Bely
2023-01-24  7:11   ` Henning Schild
2023-02-08 13:04   ` Uladzimir Bely
2023-01-13  7:19 ` [PATCH 08/11] testsuite: Support running custom commands in VM Uladzimir Bely
2023-01-24  7:14   ` Henning Schild
2023-01-24  7:14     ` Henning Schild
2023-01-13  7:19 ` [PATCH 09/11] meta-isar: Use a separate image recipe in CI Uladzimir Bely
2023-01-13  7:19 ` [PATCH 10/11] isar-image-ci: Make ethernet inerface auto bring up in ubuntu-focal Uladzimir Bely
2023-01-24  7:24   ` Henning Schild
2023-01-24  7:27     ` Henning Schild
2023-01-13  7:19 ` [PATCH 11/11] testsuite: Run custom commands on some qemu targets Uladzimir Bely
2023-01-24  7:39   ` Henning Schild

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox