[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: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH v5 01/46] qapi: Sort qapi-schema tests |
Date: |
Wed, 23 Sep 2015 17:09:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Eric Blake <address@hidden> writes:
> 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.
I really dislike picking up source files with $(wildcard), because it
can also pick up random junk.
Something like $(shell git ls-files tests/qapi-schema/*.json) avoids
random junk, but doesn't work when you build a tarball.