From patchwork Thu May 9 16:58:51 2019 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: 163727 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp1244851ilr; Thu, 9 May 2019 10:06:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpN2EaA5yzCUU976gwDAQMQgUgu6d3acF47ezm4jcG/1TThiqd6sa/uKI4VkW9LEcMw2Po X-Received: by 2002:adf:e5cc:: with SMTP id a12mr4226724wrn.78.1557421562525; Thu, 09 May 2019 10:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557421562; cv=none; d=google.com; s=arc-20160816; b=b8dcWd8ZbHP0HZ3wmZEdISt81OHy/X0OitVCihmY+tXv0FURh1IsFW4SXU3tW9s+E3 ecli46FWjF8ocdy2X1OK1CLPprnKZ9kyTNqSuLdQWQNOMFJRVLFSv/6NQJALfuYjhG7n i4rtTOmZ26faN9d2RJa75MVsn7zbDO+DBXtoSGj/I4I6sVWUlZDtvqn7j6rQ6ddMQUKd rr0/pNDNfy0RWR4FcZoZuyxcyPUFscmic+hqhNARVnXwX0gs3fNAbsXF9nqGKt5S9fZp U5nsVGZULXmHcxDosXR5GDnMcGf3XvB9iYMXU2e7kZps6ozh6iPFKRAGZXVw6J2DQB2l KRNw== 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; bh=fv7yjgipiPIa0iKuBxA7WsxKljcgZAsZBYR7nSKLcJ0=; b=K1s9iZsx6BZRg54ylGdrdFXw4eWpJhjKiWu+6KUL7H2pnxsI9KZypV5IlR8z/zvFAU OSCpoNYliEHvWqchk560HgY6T/yATulcyIdt6BK8ka+X0kht7+HvHtiDLw/qmJHDBmPe ltTvGrKBP6ISYgrncQ4BBLFZ29I0s22/bOr39nxj5pZNh5EFkjWmkWL7DonAeVnx6tLu 4+9ucHWPCBkvA24ZkaU0vc+1nV/OJR05p4GQNaW/DVlQ9ACvBrZ0taIj0ABgt3hd4mZo rCgHM2jRgqRrrqWRrGo+xwnct5gJ+Rekh9oy5fStsElWm1ZnZlecq2+slDSdT+1x5OI7 /DsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=CfLiTxHX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id a10si1908634wmb.136.2019.05.09.10.06.02 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 09 May 2019 10:06:02 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=CfLiTxHX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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 ([127.0.0.1]:58077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOmUb-0004QJ-GO for patch@linaro.org; Thu, 09 May 2019 13:06:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOmO6-0006wy-4y for qemu-devel@nongnu.org; Thu, 09 May 2019 12:59:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOmO5-0004qt-1g for qemu-devel@nongnu.org; Thu, 09 May 2019 12:59:18 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:54249) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOmO4-0004q2-Qm for qemu-devel@nongnu.org; Thu, 09 May 2019 12:59:16 -0400 Received: by mail-wm1-x341.google.com with SMTP id 198so4145961wme.3 for ; Thu, 09 May 2019 09:59:16 -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=fv7yjgipiPIa0iKuBxA7WsxKljcgZAsZBYR7nSKLcJ0=; b=CfLiTxHXQS09fZyR7C18+yYYk7t5LmtKTh/UDGhqLIdUJ/BB6YYVC6OgQNXHxchFqE u4c7EFzDLFEFMIC9G9jXA+kbK6O0nb3WLFkyGeIX1LHTW79BR1CpC2NHUndW6lVUb3p3 SYi4asNN4xGO6zgLK+i1KR3j2VZOgKWFWJSXjJCGQQkfxEyg3pG/ksj6kLfNRsBwvCoU b2teNuLGwy61PHFjMkLDigxgjqaUqyfJbQGUM1zIc3xYV/KNq0eUF7tPVSkCV2XMoqdd hyOiob5TaIcqvbz0QJLSQdNwRnUJbk/E8I1Z1+pbAxZZ2iQQWRUzQOJHf8hmeKZ9JOS0 K4vQ== 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=fv7yjgipiPIa0iKuBxA7WsxKljcgZAsZBYR7nSKLcJ0=; b=q2g4YYT1ycFFzdeQIiO1yUNb8fBxdYwwMwNbVsuFuWmwz6MUK0A+uqkl7awitFT/co WeLCeQ59ZZkyOTr9FeFSyVRJiQY3aIc50HrvUF+s78sbQhv4DraIQDNHqiXB9kBkjaeV dstMe9ENhoZRgyIIleF1m2lhdXbcpw59cXEJ/33FRoZA305PWbFEOnBg6B/wcRnm4W2S fnagyVlxymqBQBMvA+KDpJraOUJw4h2xSvQzzuEaQNq91njXPPqa/wbefJzXj3zaq+fN VxgxOCHiovxkyZSI5CuHewUNRHqKyJpIzunNiiaDb/D24OrfKCrFNnCgockLMghAxm8a nGgQ== X-Gm-Message-State: APjAAAUqusazccLqmXrwAwkb6ptglOYJzkNv/GqmbhKqb364cklnSlU3 yb72i6o5ANOQ272WwWZat4YHB2qeW08= X-Received: by 2002:a1c:f207:: with SMTP id s7mr3808663wmc.137.1557421155677; Thu, 09 May 2019 09:59:15 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a9sm3360785wmm.48.2019.05.09.09.59.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 May 2019 09:59:14 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 49CCF1FF90; Thu, 9 May 2019 17:59:12 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 9 May 2019 17:58:51 +0100 Message-Id: <20190509165912.10512-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190509165912.10512-1-alex.bennee@linaro.org> References: <20190509165912.10512-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:4864:20::341 Subject: [Qemu-devel] [PATCH v1 03/23] tests/tcg/multiarch: add support for multiarch system tests 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: Richard Henderson , qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We can certainly support some common tests for system emulation that make use of our minimal defined boot.S support. It will still be up to individual architectures to ensure they build so we provide a MULTIARCH_TESTS variable that they can tack onto TESTS themselves. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- tests/tcg/Makefile | 1 + tests/tcg/multiarch/system/Makefile.softmmu-target | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/tcg/multiarch/system/Makefile.softmmu-target -- 2.20.1 diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile index 1cdd628e96f..6fa63cc8d53 100644 --- a/tests/tcg/Makefile +++ b/tests/tcg/Makefile @@ -96,6 +96,7 @@ else # build options for bare programs are usually pretty different. They # are expected to provide their own build recipes. -include $(SRC_PATH)/tests/tcg/minilib/Makefile.target +-include $(SRC_PATH)/tests/tcg/multiarch/system/Makefile.softmmu-target -include $(SRC_PATH)/tests/tcg/$(TARGET_BASE_ARCH)/Makefile.softmmu-target ifneq ($(TARGET_BASE_ARCH),$(TARGET_NAME)) -include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.softmmu-target diff --git a/tests/tcg/multiarch/system/Makefile.softmmu-target b/tests/tcg/multiarch/system/Makefile.softmmu-target new file mode 100644 index 00000000000..db4bbeda44c --- /dev/null +++ b/tests/tcg/multiarch/system/Makefile.softmmu-target @@ -0,0 +1,14 @@ +# -*- Mode: makefile -*- +# +# Multiarch system tests +# +# We just collect the tests together here and rely on the actual guest +# architecture to add to the test dependancies and deal with the +# complications of building. +# + +MULTIARCH_SYSTEM_SRC=$(SRC_PATH)/tests/tcg/multiarch/system +VPATH+=$(MULTIARCH_SYSTEM_SRC) + +MULTIARCH_TEST_SRCS=$(wildcard $(MULTIARCH_SYSTEM_SRC)/*.c) +MULTIARCH_TESTS = $(patsubst $(MULTIARCH_SYSTEM_SRC)/%.c, %, $(MULTIARCH_TEST_SRCS))