[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 08/14] tests/vm: Added configuration file support
From: |
Alex Bennée |
Subject: |
Re: [PATCH v1 08/14] tests/vm: Added configuration file support |
Date: |
Fri, 14 Feb 2020 16:53:57 +0000 |
User-agent: |
mu4e 1.3.8; emacs 27.0.60 |
Robert Foley <address@hidden> writes:
> Changes to tests/vm/basevm.py to allow accepting a configuration file
> as a parameter. Allows for specifying VM options such as
> cpu, machine, memory, and arbitrary qemu arguments for specifying options
> such as NUMA configuration.
> Also added an example conf_example_aarch64.yml and conf_example_x86.yml.
>
> Signed-off-by: Robert Foley <address@hidden>
> ---
> tests/vm/Makefile.include | 2 ++
> tests/vm/basevm.py | 29 +++++++++++++++++-
> tests/vm/conf_example_aarch64.yml | 51 +++++++++++++++++++++++++++++++
> tests/vm/conf_example_x86.yml | 50 ++++++++++++++++++++++++++++++
> 4 files changed, 131 insertions(+), 1 deletion(-)
> create mode 100644 tests/vm/conf_example_aarch64.yml
> create mode 100644 tests/vm/conf_example_x86.yml
>
> diff --git a/tests/vm/Makefile.include b/tests/vm/Makefile.include
> index 778e506755..e9ed33226d 100644
> --- a/tests/vm/Makefile.include
> +++ b/tests/vm/Makefile.include
> @@ -35,6 +35,8 @@ vm-help vm-test:
> @echo " V=1 - Enable verbose ouput on host
> and guest commands"
> @echo " QEMU=/path/to/qemu - Change path to QEMU binary"
> @echo " QEMU_IMG=/path/to/qemu-img - Change path to qemu-img tool"
> + @echo " QEMU_CONFIG=/path/conf.yml - Change path to VM
> configuration .yml file."
> + @echo " See conf_example_*.yml for
> file format details."
>
> vm-build-all: $(addprefix vm-build-, $(IMAGES))
>
> diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
> index 33004934af..f488d4103c 100755
> --- a/tests/vm/basevm.py
> +++ b/tests/vm/basevm.py
> @@ -32,6 +32,7 @@ import shutil
> import multiprocessing
> import traceback
> from socket_thread import SocketThread
> +import yaml
So this throws my setup on my Gentoo SynQuacer. Is this meant to be in
the standard library or is this a separate dependency?
--
Alex Bennée
- [PATCH v1 04/14] tests/vm: give wait_ssh() option to wait for root, (continued)
- [PATCH v1 07/14] tests/vm: Add configuration to basevm.py, Robert Foley, 2020/02/05
- [PATCH v1 08/14] tests/vm: Added configuration file support, Robert Foley, 2020/02/05
- Re: [PATCH v1 08/14] tests/vm: Added configuration file support,
Alex Bennée <=
- [PATCH v1 10/14] tests/vm: Add ability to select QEMU from current build., Robert Foley, 2020/02/05
- [PATCH v1 09/14] tests/vm: add --boot-console switch, Robert Foley, 2020/02/05
- [PATCH v1 11/14] tests/vm: allow wait_ssh() to specify command, Robert Foley, 2020/02/05
- [PATCH v1 12/14] tests/vm: Added a new script for ubuntu.aarch64., Robert Foley, 2020/02/05
- [PATCH v1 14/14] tests/vm: change scripts to use self._config, Robert Foley, 2020/02/05
- [PATCH v1 13/14] tests/vm: Added a new script for centos.aarch64., Robert Foley, 2020/02/05
- Re: [PATCH v1 00/14] tests/vm: Add support for aarch64 VMs, Alex Bennée, 2020/02/07