Re: [PATCH 2/3] tests: Introduce viracpitest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 05, 2023 at 01:30:18PM +0200, Michal Privoznik wrote:
> Introduce a test that checks newly introduced virArch module.

s/virArch/virAcpi/

> +++ b/tests/viracpitest.c
> +static int
> +mymain(void)
> +{
> +    int ret = 0;
> +
> +#define DO_TEST(filename, nnodes, ...) \
> +    do { \
> +        const virIORTNodeType node_types[] = { __VA_ARGS__, VIR_IORT_NODE_TYPE_LAST }; \
> +        const testAarch64SMMUData data = {filename, nnodes, node_types }; \
> +        if (virTestRun("aarch64 SMMU " filename, testAarch64SMMU, &data) < 0) \
> +            ret = -1; \
> +    } while (0)
> +
> +    DO_TEST("IORT_empty", 0, VIR_IORT_NODE_TYPE_LAST);
> +    DO_TEST("IORT_virt_aarch64", 2,
> +            VIR_IORT_NODE_TYPE_ITS_GROUP,
> +            VIR_IORT_NODE_TYPE_ROOT_COMPLEX);
> +    DO_TEST("IORT_ampere", 36,
> +            VIR_IORT_NODE_TYPE_ITS_GROUP,
> +            VIR_IORT_NODE_TYPE_ROOT_COMPLEX,
> +            VIR_IORT_NODE_TYPE_SMMU_V3);
> +    DO_TEST("IORT_gigabyte", 30,
> +            VIR_IORT_NODE_TYPE_ITS_GROUP,
> +            VIR_IORT_NODE_TYPE_ROOT_COMPLEX,
> +            VIR_IORT_NODE_TYPE_SMMU_V1_2);
> +    DO_TEST("IORT_qualcom", 69,

s/qualcom/qualcomm/

Same change in the commit message.


With those typos fixed,

  Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>

-- 
Andrea Bolognani / Red Hat / Virtualization




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux