Received: from eggs.gnu.org ([2001:4830:134:3::10]:53350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zelfh-0000UH-Nh for qemu-devel@nongnu.org; Wed, 23 Sep 2015 11:09:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zelfd-0001Ge-NH for qemu-devel@nongnu.org; Wed, 23 Sep 2015 11:09:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zelfd-0001GM-Ib for qemu-devel@nongnu.org; Wed, 23 Sep 2015 11:09:21 -0400 From: Markus Armbruster References: <1442872682-6523-1-git-send-email-eblake@redhat.com> <1442872682-6523-2-git-send-email-eblake@redhat.com> <5602B686.4010209@redhat.com> Date: Wed, 23 Sep 2015 17:09:18 +0200 In-Reply-To: <5602B686.4010209@redhat.com> (Eric Blake's message of "Wed, 23 Sep 2015 08:26:14 -0600") Message-ID: <8737y5yxy9.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v5 01/46] qapi: Sort qapi-schema tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: marcandre.lureau@redhat.com, DirtY.iCE.hu@gmail.com, qemu-devel@nongnu.org, ehabkost@redhat.com Eric Blake 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 >> --- >> 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.