From patchwork Tue May 28 09:49:39 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: 10964539 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9466314C0 for ; Tue, 28 May 2019 10:03:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 852FC28434 for ; Tue, 28 May 2019 10:03:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79B28286EE; Tue, 28 May 2019 10:03:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2043028477 for ; Tue, 28 May 2019 10:03:51 +0000 (UTC) Received: from localhost ([127.0.0.1]:60134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVYxT-0001Eh-9P for patchwork-qemu-devel@patchwork.kernel.org; Tue, 28 May 2019 06:03:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVYkC-0006KE-7G for qemu-devel@nongnu.org; Tue, 28 May 2019 05:50:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVYkB-0000Ct-7j for qemu-devel@nongnu.org; Tue, 28 May 2019 05:50:08 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:38132) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVYkB-0000B5-29 for qemu-devel@nongnu.org; Tue, 28 May 2019 05:50:07 -0400 Received: by mail-wr1-x441.google.com with SMTP id d18so19473519wrs.5 for ; Tue, 28 May 2019 02:50:06 -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=c6ckUXNY8YtrdJt2PGJuuiNEz2jhFg33XnClUpP+3OA=; b=BrtZMIu9sFhJAYg545BYs5wwNpO7LfqWqewPdAQNceOYrQY4SpIusyiNi9JPsxxlIR CaYvHOZc7Egmk2HXqnM+WT5G3kSEPF65tIuVPDodgg5llVCxDFS43xu6uCUWMmNVR7Ef kP0NnEQygsejb14fGnAaQTWvw0QFdByxwXPgM4Ewf2eBnF6SKzVg1GgpTO9z+7LZNe4m R/AbIe3fiYoFYsGu+48+mtNgeKZNl4UXvtjPj+IF3dJ94A0hCUyND2T6/ZWx1n6dpFfd aflgwa8ywIdo5wHv5BPDd7Jn1FTt+SnEGewhEeZ16oNntPxAgl1TGijWM0inSloKJS84 7J5A== 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=c6ckUXNY8YtrdJt2PGJuuiNEz2jhFg33XnClUpP+3OA=; b=t/itnYYWwvZqtktZNIU81YRab3LqEE9SP07u7GAEho4NjHpD4fd2fxvjMl/Bk8Plck jg0+ZM7Xf2MSgzZBH6nWudS3JkD3X8vrZU9/v/YD0VfNuYngVJuy4HJ+cPzgmCeU7o0z qXStSXiWpRGOpLqyXyvDATF9qIELE+b5ZMPN4zM7B+NUvzsFTRS34xG94dkHrXOSZ5nU crCR+5HPBb0yWnBdKiEwG25XL55E60lR+6yx8mP9qyhYx0K3N8mSzjWaQ8IpSHOxx7Wk VVPm908khnbKQ2Ul87zIIRBHz4gjSz9EvFWclRYmUIvFNLPt665wNou+pF9MIFxRWGaA pwVg== X-Gm-Message-State: APjAAAVqxnnGXx5Z061P1ckax6ykWDgIPOfO7x0bSRF4BLXNTYFlJn0S nii5QXSYpVdaSq2dCSp4qrqywA== X-Google-Smtp-Source: APXvYqzpr+4zvpxTeM/cWq4A6UZU8YWJToqgcY/I6FvjtH+VryCz2F8l5Q7vZnHhkhR3d/66HL0UFg== X-Received: by 2002:adf:e80a:: with SMTP id o10mr17022177wrm.79.1559037005360; Tue, 28 May 2019 02:50:05 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a2sm7731931wrg.69.2019.05.28.02.49.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 May 2019 02:50:02 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AA09F1FF9D; Tue, 28 May 2019 10:49:54 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 28 May 2019 10:49:39 +0100 Message-Id: <20190528094953.14898-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190528094953.14898-1-alex.bennee@linaro.org> References: <20190528094953.14898-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::441 Subject: [Qemu-devel] [PULL 14/28] 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 , =?utf-8?q?Alex_Benn?= =?utf-8?q?=C3=A9e?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 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))