[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 6/7] Acceptance Tests: add variants definition f
From: |
Laszlo Ersek |
Subject: |
Re: [Qemu-devel] [PATCH 6/7] Acceptance Tests: add variants definition for architectures |
Date: |
Thu, 4 Oct 2018 18:48:07 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 10/04/18 17:14, Cleber Rosa wrote:
> One of the Avocado features relevant to virtualization testing is the
> ability to reuse tests in different scenarios, known as variants.
> This adds a JSON based variants file, that can be used to run most
> tests in a number of different architectures. It can be run with:
>
> $ avocado run \
> --json-variants-load=tests/acceptance/variants/arch.json \
> --filter-by-tags='-x86_64' -- tests/acceptance/
>
> Currently this covers 5 architectures, resulting in the execution
> of 25 different combinations.
>
> Signed-off-by: Cleber Rosa <address@hidden>
> ---
> tests/acceptance/variants/arch.json | 1 +
> 1 file changed, 1 insertion(+)
> create mode 100644 tests/acceptance/variants/arch.json
>
> diff --git a/tests/acceptance/variants/arch.json
> b/tests/acceptance/variants/arch.json
> new file mode 100644
> index 0000000000..a7a2570553
> --- /dev/null
> +++ b/tests/acceptance/variants/arch.json
> @@ -0,0 +1 @@
> +[{"paths":["/run/*"],"variant":[["/run/aarch64",[["/run/aarch64", "arch",
> "aarch64"]]]],"variant_id":
> "aarch64"},{"paths":["/run/*"],"variant":[["/run/ppc",[["/run/ppc", "arch",
> "ppc"]]]],"variant_id":
> "ppc"},{"paths":["/run/*"],"variant":[["/run/ppc64",[["/run/ppc64", "arch",
> "ppc64"]]]],"variant_id":
> "ppc64"},{"paths":["/run/*"],"variant":[["/run/s390x",[["/run/s390x", "arch",
> "s390x"]]]],"variant_id":
> "s390x"},{"paths":["/run/*"],"variant":[["/run/x86_64",[["/run/x86_64",
> "arch", "x86_64"]]]],"variant_id": "x86_64"}]
>
(Side comment: you can parse json? :) That's awesome. Then I *am*
tempted to suggest that Philippe's work parse the firmware metadata
format, in the long run.)
Laszlo
- [Qemu-devel] [PATCH 2/7] Acceptance Tests: introduce arch parameter and attribute, (continued)
- [Qemu-devel] [PATCH 2/7] Acceptance Tests: introduce arch parameter and attribute, Cleber Rosa, 2018/10/04
- [Qemu-devel] [PATCH 3/7] scripts/qemu.py: add method and private attribute for arch, Cleber Rosa, 2018/10/04
- [Qemu-devel] [PATCH 4/7] scripts/qemu.py: set predefined machine type based on arch, Cleber Rosa, 2018/10/04
- [Qemu-devel] [PATCH 5/7] Acceptance Tests: set machine type, Cleber Rosa, 2018/10/04
- [Qemu-devel] [PATCH 6/7] Acceptance Tests: add variants definition for architectures, Cleber Rosa, 2018/10/04
[Qemu-devel] [PATCH 7/7] Acceptance Tests: change the handling of tests for specific archs, Cleber Rosa, 2018/10/04