Received: from eggs.gnu.org ([2001:4830:134:3::10]:35013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXZRW-0005Nc-ME for qemu-devel@nongnu.org; Fri, 26 Sep 2014 13:36:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXZRQ-0003i4-Fl for qemu-devel@nongnu.org; Fri, 26 Sep 2014 13:36:30 -0400 From: Michael Tokarev Date: Fri, 26 Sep 2014 21:36:05 +0400 Message-Id: <1411752976-29051-2-git-send-email-mjt@msgid.tls.msk.ru> In-Reply-To: <1411752976-29051-1-git-send-email-mjt@tls.msk.ru> References: <1411752976-29051-1-git-send-email-mjt@tls.msk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 01/12] tests: avoid running duplicate qom-tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Michael Tokarev , Michael Roth , qemu-stable@nongnu.org From: Michael Roth Since 3687d532 we've been unconditionally adding qom-test to our qtests for every arch. However, some archs inherit their tests from Makefile variables for other archs, such as i386/x86_64, microblaze/microblazeel, and xtensa/xtensaeb. Since these are evaluated in a lazy manner, we ultimately end up adding qom-test twice. In the case x86_64, where we have a large number of machine types that we rerun qom-test for, this has lead to a fairly noticeable increase in the overall run-time of `make check` (78s vs. 42s on my machine). Similar speed-ups are visible for other such archs, but not nearly as significant. Fix this by only adding qom-test to an arch's test list if it's not already present. Signed-off-by: Michael Roth Reviewed-by: Peter Maydell Reviewed-by: Andreas F=C3=A4rber Cc: qemu-stable@nongnu.org Signed-off-by: Michael Tokarev --- tests/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index f5de29c..e8bdd1a 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -193,7 +193,8 @@ check-qtest-xtensaeb-y =3D $(check-qtest-xtensa-y) =20 # qom-test works for all sysemu architectures: $(foreach target,$(SYSEMU_TARGET_LIST), \ - $(eval check-qtest-$(target)-y +=3D tests/qom-test$(EXESUF))) + $(if $(findstring tests/qom-test$(EXESUF), $(check-qtest-$(target)-y)),= , \ + $(eval check-qtest-$(target)-y +=3D tests/qom-test$(EXESUF)))) =20 check-qapi-schema-y :=3D $(addprefix tests/qapi-schema/, \ comments.json empty.json funny-char.json indented-expr.json \ --=20 1.7.10.4