[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 01/46] qapi: Sort qapi-schema tests
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v5 01/46] qapi: Sort qapi-schema tests |
Date: |
Wed, 23 Sep 2015 08:26:14 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 09/21/2015 03:57 PM, Eric Blake wrote:
> Recent changes to qapi have provided quite a bit of churn in
> the makefile, because we are inconsistent on what order test
> names appear in, and on whether to re-wrap the list of tests or
> just add arbitrary line lengths. Writing the list in a sorted
> fashion, one test per line, will make future patches easier
> to see what tests are being added or removed by a patch.
>
> Signed-off-by: Eric Blake <address@hidden>
> ---
> tests/Makefile | 160
> ++++++++++++++++++++++++++++++++++++++++-----------------
> 1 file changed, 114 insertions(+), 46 deletions(-)
>
> +qapi-schema += alternate-array.json
> +qapi-schema += alternate-base.json
Hmm, I just realized we require GNU make, and that we already use
$(wildcard) when building up other tests. Would it be worth writing
this patch to merely use $(wildcard qapi-tests/*.json)? Then further
additions (and removals) of .json files would automatically be picked up
without requiring Makefile tweaking.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature