From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnAU1-00089K-Mu for qemu-devel@nongnu.org; Thu, 22 Sep 2016 16:20:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnATw-0000tH-Gk for qemu-devel@nongnu.org; Thu, 22 Sep 2016 16:20:36 -0400 Received: from mx5-phx2.redhat.com ([209.132.183.37]:54654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnATw-0000sr-7D for qemu-devel@nongnu.org; Thu, 22 Sep 2016 16:20:32 -0400 Date: Thu, 22 Sep 2016 16:20:29 -0400 (EDT) From: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Message-ID: <617491437.1145776.1474575629329.JavaMail.zimbra@redhat.com> In-Reply-To: <20160922201916.20143-1-marcandre.lureau@redhat.com> References: <20160922201916.20143-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] build-sys: generate .gitignore List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Cc: qemu-devel@nongnu.org, eblake@redhat.com, peter maydell Hi ----- Original Message ----- > It's too easy to forget about updating the .gitignore, so this is an > attempt at generating it instead. >=20 > Signed-off-by: Marc-Andr=C3=A9 Lureau I forgot to mention this is only for tests/.gitignore actually here. > --- > tests/Makefile.include | 23 ++++++++++++-- > tests/.gitignore | 82 > -------------------------------------------------- > 2 files changed, 20 insertions(+), 85 deletions(-) > delete mode 100644 tests/.gitignore >=20 > diff --git a/tests/Makefile.include b/tests/Makefile.include > index 93f2ba1..339126d 100644 > --- a/tests/Makefile.include > +++ b/tests/Makefile.include > @@ -785,6 +785,19 @@ $(patsubst %, check-%, $(check-qapi-schema-y)): > check-%.json: $(SRC_PATH)/%.json > =09@diff -q $(SRC_PATH)/$*.exit $*.test.exit > =20 > # Consolidated targets > +tests-cleanfiles =3D *.o > +tests-cleanfiles =3D .gitignore > +tests-cleanfiles +=3D qht-bench$(EXESUF) > +tests-cleanfiles +=3D qapi-schema/*.test.* > +tests-cleanfiles +=3D test-qapi-event.[ch] > +tests-cleanfiles +=3D test-qapi-types.[ch] > +tests-cleanfiles +=3D test-qapi-visit.[ch] > +tests-cleanfiles +=3D test-qmp-introspect.[ch] > +tests-cleanfiles +=3D test-qmp-commands.h > +tests-cleanfiles +=3D test-qmp-marshal.c > +tests-cleanfiles +=3D $(subst tests/,,$(check-unit-y)) > +tests-cleanfiles +=3D $(subst tests/,,$(check-qtest-y)) > +tests-cleanfiles +=3D qemu-iotests/socket_scm_helper$(EXESUF) > =20 > .PHONY: check-qapi-schema check-qtest check-unit check check-clean > check-qapi-schema: $(patsubst %,check-%, $(check-qapi-schema-y)) > @@ -794,14 +807,18 @@ check-block: $(patsubst %,check-%, $(check-block-y)= ) > check: check-qapi-schema check-unit check-qtest > check-clean: > =09$(MAKE) -C tests/tcg clean > -=09rm -rf $(check-unit-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y) > -=09rm -rf $(sort $(foreach target,$(SYSEMU_TARGET_LIST), > $(check-qtest-$(target)-y)) $(check-qtest-generic-y)) > - > +=09(cd tests && echo rm -rf $(tests-cleanfiles)) > clean: check-clean > =20 > # Build the help program automatically > =20 > all: $(QEMU_IOTESTS_HELPERS-y) > =20 > +ifneq ($(filter-out $(UNCHECKED_GOALS),$(MAKECMDGOALS)),$(if > $(MAKECMDGOALS),,fail)) > +$(SRC_PATH)/tests/.gitignore: > +=09echo "$(tests-cleanfiles)" | xargs -n1 | sort > $@ > +Makefile: $(SRC_PATH)/tests/.gitignore > +endif > + > -include $(wildcard tests/*.d) > -include $(wildcard tests/libqos/*.d) > diff --git a/tests/.gitignore b/tests/.gitignore > deleted file mode 100644 > index b4a9cfc..0000000 > --- a/tests/.gitignore > +++ /dev/null > @@ -1,82 +0,0 @@ > -check-qdict > -check-qfloat > -check-qint > -check-qjson > -check-qlist > -check-qnull > -check-qstring > -check-qom-interface > -check-qom-proplist > -qht-bench > -rcutorture > -test-aio > -test-base64 > -test-bitops > -test-blockjob-txn > -test-clone-visitor > -test-coroutine > -test-crypto-afsplit > -test-crypto-block > -test-crypto-cipher > -test-crypto-hash > -test-crypto-ivgen > -test-crypto-pbkdf > -test-crypto-secret > -test-crypto-tlscredsx509 > -test-crypto-tlscredsx509-work/ > -test-crypto-tlscredsx509-certs/ > -test-crypto-tlssession > -test-crypto-tlssession-work/ > -test-crypto-tlssession-client/ > -test-crypto-tlssession-server/ > -test-crypto-xts > -test-cutils > -test-hbitmap > -test-int128 > -test-iov > -test-io-channel-buffer > -test-io-channel-command > -test-io-channel-command.fifo > -test-io-channel-file > -test-io-channel-file.txt > -test-io-channel-socket > -test-io-channel-tls > -test-io-task > -test-logging > -test-mul64 > -test-opts-visitor > -test-qapi-event.[ch] > -test-qapi-types.[ch] > -test-qapi-visit.[ch] > -test-qdev-global-props > -test-qemu-opts > -test-qdist > -test-qga > -test-qht > -test-qht-par > -test-qmp-commands > -test-qmp-commands.h > -test-qmp-event > -test-qmp-input-strict > -test-qmp-input-visitor > -test-qmp-introspect.[ch] > -test-qmp-marshal.c > -test-qmp-output-visitor > -test-rcu-list > -test-replication > -test-rfifolock > -test-string-input-visitor > -test-string-output-visitor > -test-thread-pool > -test-throttle > -test-timed-average > -test-visitor-serialization > -test-vmstate > -test-write-threshold > -test-x86-cpuid > -test-xbzrle > -test-netfilter > -test-filter-mirror > -test-filter-redirector > -*-test > -qapi-schema/*.test.* > -- > 2.10.0 >=20 >=20