From patchwork Thu Dec 1 05:14:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pranith Kumar X-Patchwork-Id: 9455417 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C1A0660235 for ; Thu, 1 Dec 2016 05:24:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6D6728497 for ; Thu, 1 Dec 2016 05:24:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ABB9B284BF; Thu, 1 Dec 2016 05:24:34 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4A2AE28497 for ; Thu, 1 Dec 2016 05:24:34 +0000 (UTC) Received: from localhost ([::1]:48193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCJrF-0002GY-Fr for patchwork-qemu-devel@patchwork.kernel.org; Thu, 01 Dec 2016 00:24:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCJhk-0002t9-DC for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:14:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCJhj-0007Oh-5t for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:14:44 -0500 Received: from mail-yw0-x242.google.com ([2607:f8b0:4002:c05::242]:36813) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cCJhi-0007NN-Vc for qemu-devel@nongnu.org; Thu, 01 Dec 2016 00:14:43 -0500 Received: by mail-yw0-x242.google.com with SMTP id r204so16810660ywb.3 for ; Wed, 30 Nov 2016 21:14:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=R/8A69vDkzhuFJVD5NyIsE97dIAGQ4kWEVvi6afLsEY=; b=NboGcgMqdCFn+UL+bMa5dqNOB6kwox1HA2Ftdfvt0kxCCHHuAQ7wa7wL3STVAdPpB/ w2f3UOFJn4LOe5OTLgq3mh35JsMzndqRTza7bJTZv4x6p6q4hh/ztcBR3t2HRxbDNaVj fy+UFRX0cY0hjkDMFXWtHTI0tOWbZb/qJ0i/YklVvEU0G9dms1uyg8nrRAqj3XQOWIQS CBoja7UfGEl+Xzx8L1c/cU2TMlnX3dEAPO/raD6sOgZgxsiyytuj0M+DxUkk2fDA7HuZ TZUl49r77NKbjpWxMe0W1zMCTryHOKKWUj67GYXsWKqn6ekTVi4q+zQ1BpyBzBzteMR5 o8eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=R/8A69vDkzhuFJVD5NyIsE97dIAGQ4kWEVvi6afLsEY=; b=kdI5yToKIQ2Ia6U1qXrBZfdbqfYcAMvg+QnRx9b26F1svmyliQYtBkqKUHaGQWUE7A e/ynga+DnEEyG8wFZB9yQKhvfh52YYi/yfSV130Z3RuilpGk5d5Ddx5aaa8AgMuulKZl Z9Youh9REs4iZuUIgJamNEexi5XvuU+3xGJBMjK9DgEL0z8SfCOVshE3d+m9bcUPTY6a wL2nM71Etf5SZNN5TGg9R/aym6rpOhE9fAj3ZuxAoO5g2uLBrdHGVzM1ARfae53mS4qC VWxyEjgicJXlFEPGzjzFKh3xn+Gj/GuJ+pxqsR2M19YzTAOCYwqm9ia8khqK9kMEy3Zv ep6w== X-Gm-Message-State: AKaTC00FiThroxwURj2c+Faebe7I+0Dby+q1gqi1WP6ZTDPwgi3BbP6JJLRniBeoyUzmBQ== X-Received: by 10.13.214.206 with SMTP id y197mr37899718ywd.161.1480569282038; Wed, 30 Nov 2016 21:14:42 -0800 (PST) Received: from localhost.localdomain (c-73-207-178-95.hsd1.ga.comcast.net. [73.207.178.95]) by smtp.gmail.com with ESMTPSA id l73sm24681068ywc.54.2016.11.30.21.14.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Nov 2016 21:14:41 -0800 (PST) From: Pranith Kumar To: alex.bennee@linaro.org Date: Thu, 1 Dec 2016 00:14:24 -0500 Message-Id: <20161201051433.17168-11-bobby.prani@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161201051433.17168-1-bobby.prani@gmail.com> References: <20161201051433.17168-1-bobby.prani@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c05::242 Subject: [Qemu-devel] [PATCH 10/19] tests/tcg: Move arm tests to arch specific folder 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: qemu-devel@nongnu.org, rth@twiddle.net Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Pranith Kumar --- tests/tcg/arm/Makefile | 45 +++++++++++++++++++++++++++++++++++ tests/tcg/{ => arm}/hello-arm.c | 0 tests/tcg/{ => arm}/test-arm-iwmmxt.s | 0 3 files changed, 45 insertions(+) create mode 100644 tests/tcg/arm/Makefile rename tests/tcg/{ => arm}/hello-arm.c (100%) rename tests/tcg/{ => arm}/test-arm-iwmmxt.s (100%) diff --git a/tests/tcg/arm/Makefile b/tests/tcg/arm/Makefile new file mode 100644 index 0000000..c2ae491 --- /dev/null +++ b/tests/tcg/arm/Makefile @@ -0,0 +1,45 @@ +BUILD_DIR?=$(CURDIR) +SRC_PATH=../../../ +include $(BUILD_DIR)/config-host.mak +include $(SRC_PATH)/rules.mak + +$(call set-vpath, $(SRC_PATH)/tests/tcg/arm) + +QEMU=$(BUILD_DIR)/arm-linux-user/qemu-arm + +QEMU_INCLUDES += -I$(BUILD_DIR) +CFLAGS=-Wall -O2 -g -fno-strict-aliasing +LDFLAGS= + +# TODO: automatically detect ARM and MIPS compilers, and run those too + +# runcom maps page 0, so it requires root privileges +# also, pi_10.com runs indefinitely + +TESTS=hello-arm arm-iwmmxt + +all: $(patsubst %,run-%,$(TESTS)) +test: all + +# rules to run tests + +run-%: % + $(QEMU) ./$* + +#.PHONY: $(patsubst %,run-%,$(TESTS)) + +run-hello-arm: hello-arm +run-arm-iwmmxt: arm-iwmmxt + +# arm test +hello-arm: hello-arm.o + arm-linux-gnueabi-ld -o $@ $< + +hello-arm.o: hello-arm.c + arm-linux-gnueabi-gcc -Wall -g -O2 -c -o $@ $< + +arm-iwmmxt: test-arm-iwmmxt.s + cpp < $< | arm-linux-gnueabi-gcc -Wall -static -march=iwmmxt -mabi=aapcs -x assembler - -o $@ + +clean: + rm -f *~ *.o $(TESTS) diff --git a/tests/tcg/hello-arm.c b/tests/tcg/arm/hello-arm.c similarity index 100% rename from tests/tcg/hello-arm.c rename to tests/tcg/arm/hello-arm.c diff --git a/tests/tcg/test-arm-iwmmxt.s b/tests/tcg/arm/test-arm-iwmmxt.s similarity index 100% rename from tests/tcg/test-arm-iwmmxt.s rename to tests/tcg/arm/test-arm-iwmmxt.s