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: 165290 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp7807333oca; Tue, 28 May 2019 03:05:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsN/r+p5MEhMEiiTOo8/sHmqyDUhkDyC5wUYaNS7m5QbILqK2pXCLetxvZnMjQm9yT7hkT X-Received: by 2002:a05:620a:12ef:: with SMTP id f15mr4485614qkl.340.1559037926120; Tue, 28 May 2019 03:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559037926; cv=none; d=google.com; s=arc-20160816; b=vyc9Qjp9IgerBaQpwUoKFDfwV48pAFaJcAJrGM1VeByiTOgPFF5udQw+FwyA3S79Tq RvsdIkiMmg5VUHfD1/Pc7M1xLZc79zS09MzJTomLsoilED9q5q0b9JHFSiMhMNRcmH6V QNS1VPvmlEqxrQJV9j0LxkIDkmjb4zCuO3VZulByhm4i25hMBiVGQ+wBpuwbKUTk+pfX 23VR8Ht7R1sS/vOdhJm82ckjpYXXaqOxJdaIEpEIY+qvOIXZWx8umhk/QTkhad5rEOBJ yTynIYDFN7i7tPr4beRypJZDklShsORk6a9YJqzgwNaesg3+wHrG3LyitWE7rKhApYIa DGsg== 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=c6ckUXNY8YtrdJt2PGJuuiNEz2jhFg33XnClUpP+3OA=; b=OIOIEh/8kHBjNxwydDBKLJ4yUkrzAFp29ydPfevLHWnWkk5ZOwMWHiJgIhL0lUbu0p V6SawKyPtD6KtNG0cVIJRbppS6JDXu8hY8L3foLIe9ePZ4/ihug3POicW3yZTaoDwCwE s0/eoAvx4VA3TvZvw5c1zxFJayx3QIOI/YY3cY5Nu3cKSQjJsAE2Jw/7PC+eCODOJ8f9 avrNAIzhKasSfbb2MVVHUMlRfjwXnaHJUslYVix8zWkijUFEzyDJ7N/bzjzM5o5C2xgY 5Zra2n34aSpbrfMdclIWx6TKLBD01woXTHUlQNB78F2eN82FS4L78IMeFpy3Wy+XiPG/ a6yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BrtZMIu9; 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 h29si4964944qtc.268.2019.05.28.03.05.26 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 28 May 2019 03:05:26 -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=BrtZMIu9; 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]:60193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVYyz-0002P1-OT for patch@linaro.org; Tue, 28 May 2019 06:05:25 -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-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?b?w6ll?= , qemu-devel@nongnu.org, =?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 -- 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))