From patchwork Fri Jun 8 12:33:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 138050 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp914804lji; Fri, 8 Jun 2018 07:04:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIRDtZTRh3yoI69xvTv7Tyk7bX7Awlf2/sj+gF5yforl62KO4Q1iHkd6NeNC5ASifKnO73c X-Received: by 2002:a37:1bc9:: with SMTP id m70-v6mr5297113qkh.152.1528466680905; Fri, 08 Jun 2018 07:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528466680; cv=none; d=google.com; s=arc-20160816; b=EmWlhLn/mdXJIOiSbzz7095tOXFpVuGu2TZSOPIk8fWcv46NFa+LByNv0/EkgbMvi8 Fxk6gbKj/1u1+61QzHsZ8YOiDj8et3bZikJeMJQyrTd2YVXmpJ3++E2Af2gno/k/V1fi qK4FcgOjA/2uuIF0sNaUiGFC6vK+ekv4zOiXXANiVTE6lbVs2v0TN6QH9JDDJeDAewj2 fu9HOdRkPc5Ox85CTIo9Fl+0fQWqcesFYFIkr1mPFRezAshJNFa3mUwWYLs5A4BDaXgh L4/0bp+B94uyxTr86waAZGV9OtHXW7de+BOPiXJrMQPr7YSJpi0hbDwvS+y33bk1bAWW 9DbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=l94BRYWB6C/8EMARCfMwzNwrI+QJ/wZscxBuLr/z8aM=; b=vrxjHUdDsSZ927G34wfwI2PnlFkiRbsLEClUaTALtSb0xM1DpHnUfHdZ2N/GZe25Q0 hgW7iS69CtJT/o/4K5PuHJJ0BNl26/CZQmnXeG2TBsYMyeTxHexc7CCrwES1wWKsMtBt 3PA+YMU5/b6wBM9rjbv/jXpJWnpDa+MWt8a37kTzEgE20BiBMKSH/hUf/5Lzo8UnGhc2 H8ECyaGosBlbN7OC7xP177Pmk3hzGDG0l9HG/82LppUwtmj+IMOjCeb3m8jnfY6ROcOt UJUss/5fk/W/yJm/W/HxB3bGWr2grN8Cez4E72VLGHcvmCCZtm7CLF4Y1YJ9LioIYnL7 JXyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=aLnE6CQe; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id m129-v6si5677719qkd.87.2018.06.08.07.04.40 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 08 Jun 2018 07:04:40 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=aLnE6CQe; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:35891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRI0O-0000H6-BB for patch@linaro.org; Fri, 08 Jun 2018 10:04:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRGpO-0005ud-LB for qemu-devel@nongnu.org; Fri, 08 Jun 2018 08:49:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRGpK-0006cr-OI for qemu-devel@nongnu.org; Fri, 08 Jun 2018 08:49:14 -0400 Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:41772) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRGpK-0006cS-Gi for qemu-devel@nongnu.org; Fri, 08 Jun 2018 08:49:10 -0400 Received: by mail-wr0-x231.google.com with SMTP id h10-v6so13267071wrq.8 for ; Fri, 08 Jun 2018 05:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=l94BRYWB6C/8EMARCfMwzNwrI+QJ/wZscxBuLr/z8aM=; b=aLnE6CQeSqVtShA/yeN/PvrxLswc2cx1kaDa41sM7gh0HUTkHCdU0QiDHuffw6CpP0 auNLOY47UnY71CKmVw3cR9ZvJtjUIvvr3S8fIXqT9DXMa/pDqQtHRzdvdAiiNsxXHlcf jy4usndJUkuwiTiEjI1LNTVEWnw/ghM4V0oRI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=l94BRYWB6C/8EMARCfMwzNwrI+QJ/wZscxBuLr/z8aM=; b=K8hyOk0x8Sm+z6TuIrnk9fEdufLSjM4G6UMwe/bvr/WxAmLpTroLDetbCjsHkO0EhV 9d4PUuVWgY4TfOlPIFSbcLUy0Gem9IWgKbetiw1vSWoBHmzrivBPWSwRCo8B4XcZrM4C TZvmEZHI0UJdJCNY4H8AguvywLomDIhz4go0vjgKRCYQTUbThaLdUDkzW76Xn8xWBhrt Pf++xKzKEd8VXAtvmtgArb64MTdVfo9M3zzuqLlZFGOeNFtshrg5rF/NKoF2sBzkWoDF ZXDZn9xc8bsfqDKLX+rp6EFzGtbEYs6PGOzKsl0ILhsg7Zo/4CBeKee5FPPUy6hGgzFD nTNQ== X-Gm-Message-State: APt69E2wNkmM83yNrcB40TwD+YAU80yYURUl95dT3r9P7DezSr/QIqwU UOf5pkCoBM/110kUVFneEGa8mg== X-Received: by 2002:adf:e542:: with SMTP id z2-v6mr5183714wrm.111.1528462149376; Fri, 08 Jun 2018 05:49:09 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o12-v6sm88769536wrf.30.2018.06.08.05.49.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Jun 2018 05:49:08 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id DDA573E0D7F; Fri, 8 Jun 2018 13:33:10 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de, pbonzini@redhat.com, stefanha@redhat.com, stefanb@linux.vnet.ibm.com, marcandre.lureau@redhat.com Date: Fri, 8 Jun 2018 13:33:01 +0100 Message-Id: <20180608123307.24773-44-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180608123307.24773-1-alex.bennee@linaro.org> References: <20180608123307.24773-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::231 Subject: [Qemu-devel] [PATCH v6 43/49] tests/Makefile.include: add [build|clean|check]-tcg targets X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This will ensure all linux-user targets build their guest test programs and ensure check-tcg will run the respective tests. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v2 - use -include instead of complex macro stuff - also include TARGET_BASE_ARCH/Makefile v3 - add build-tcg, make check-tcg actually run tests --- tests/Makefile.include | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/tests/Makefile.include b/tests/Makefile.include index 0eaa835b8a..ca00247e36 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -10,6 +10,7 @@ check-help: @echo " $(MAKE) check-speed Run qobject speed tests" @echo " $(MAKE) check-qapi-schema Run QAPI schema tests" @echo " $(MAKE) check-block Run block tests" + @echo " $(MAKE) check-tcg Run TCG tests" @echo " $(MAKE) check-report.html Generates an HTML test report" @echo " $(MAKE) check-clean Clean the tests" @echo @@ -923,6 +924,30 @@ check-report.xml: $(patsubst %,check-report-qtest-%.xml, $(QTEST_TARGETS)) check check-report.html: check-report.xml $(call quiet-command,gtester-report $< > $@,"GEN","$@") +# Per guest TCG tests + +LINUX_USER_TARGETS=$(filter %-linux-user,$(TARGET_LIST)) +BUILD_TCG_TARGET_RULES=$(patsubst %,build-tcg-tests-%, $(LINUX_USER_TARGETS)) +CLEAN_TCG_TARGET_RULES=$(patsubst %,clean-tcg-tests-%, $(LINUX_USER_TARGETS)) +RUN_TCG_TARGET_RULES=$(patsubst %,run-tcg-tests-%, $(LINUX_USER_TARGETS)) + +build-tcg-tests-%: + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" guest-tests,) + +run-tcg-tests-%: build-tcg-tests-% + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" run-guest-tests,) + +clean-tcg-tests-%: + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" clean-guest-tests,) + +.PHONY: build-tcg +build-tcg: $(BUILD_TCG_TARGET_RULES) + +.PHONY: check-tcg +check-tcg: $(RUN_TCG_TARGET_RULES) + +.PHONY: clean-tcg +clean-tcg: $(CLEAN_TCG_TARGET_RULES) # Other tests @@ -965,7 +990,6 @@ check-speed: $(patsubst %,check-%, $(check-speed-y)) check-block: $(patsubst %,check-%, $(check-block-y)) check: check-qapi-schema check-unit check-qtest check-decodetree check-clean: - $(MAKE) -C tests/tcg clean rm -rf $(check-unit-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y) rm -rf $(sort $(foreach target,$(SYSEMU_TARGET_LIST), $(check-qtest-$(target)-y)) $(check-qtest-generic-y)) rm -f tests/test-qapi-gen-timestamp