From patchwork Mon Aug 29 22:49:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pranith Kumar X-Patchwork-Id: 9304595 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 7B514601C0 for ; Mon, 29 Aug 2016 22:52:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 628922869E for ; Mon, 29 Aug 2016 22:52:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5728F28752; Mon, 29 Aug 2016 22:52:31 +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 E167B285F7 for ; Mon, 29 Aug 2016 22:52:30 +0000 (UTC) Received: from localhost ([::1]:46106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beVPp-0007fu-VF for patchwork-qemu-devel@patchwork.kernel.org; Mon, 29 Aug 2016 18:52:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beVMx-0005sk-1v for qemu-devel@nongnu.org; Mon, 29 Aug 2016 18:49:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beVMp-0004Tf-7d for qemu-devel@nongnu.org; Mon, 29 Aug 2016 18:49:29 -0400 Received: from mail-yb0-x244.google.com ([2607:f8b0:4002:c09::244]:36503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beVMp-0004TU-3U for qemu-devel@nongnu.org; Mon, 29 Aug 2016 18:49:23 -0400 Received: by mail-yb0-x244.google.com with SMTP id f60so45073ybi.3 for ; Mon, 29 Aug 2016 15:49:22 -0700 (PDT) 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=FCnzuXqnrltZLOHo1k6pZAORxddpjZpjWOgWx7FKXRM=; b=Hlqzc+iuKjrFYyIGZcL6NPAzl000fwrKLBaICY6+nB4o10QIxg9xBg7OghilfsoitL qTyXMR2+KE3h/hoLShtR5pP4y2cNcPei2xPlKAbE8+1EfgFztlXF1K+vzqJalo99Hguk wT7Bv7Pq66InaE6jz02RUnGsvwZ7PUOLBjwB94Xohyi8URga15Wm1/FUHWbtyUQKywLv 8DRm01GMt2UQXCwan3KZQE0uLtkqgrgqAJfX4NDhnnPlDsoavAtN8pQ5/BWaDGJ4rAJC o9DAb7IuejEKfiTQIpx0uGBHCEG1hTYmtHG2BJ69ci40aVIT3DQjXyH3dUdeYgM4h7PR mVuQ== 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=FCnzuXqnrltZLOHo1k6pZAORxddpjZpjWOgWx7FKXRM=; b=cINwTyaTSPTBqzVV33v4I4jFVlMdLYZSauZ/rSnYT38Tnm/RphlHrnxMr7op9Qxyqh Gv8aOU3Deeyhj6JUfZMOUrJW+sQIbBAqia0ll/SRTE6MJnF43GaYWoba+3ofEGotbwVw iA7sNTi7ue4T200wdvdLLnYHV2m4Qbqlqh8OOwQdpVyeFv+3JVSyjDSXtbEotcpELOaT Nv/OFXdPzC0XntltLp33fZG+ejnD2vpyHc7CNX9w45MNFdBDBeezX7qU+RH/wYTrYDDU vYAMxBR1+mRtiWC2Hx2bvhiYwJoPqK9d/Mgw7oq/8iiCAVqqaLdRmHaxi30RlIB7a8P+ IopQ== X-Gm-Message-State: AE9vXwOnfOGhkFAsoMy/n062nngJIZNRWVDjweyOBSD77UeZL92W1eE8bbvTrcmcJ0DZvw== X-Received: by 10.37.113.197 with SMTP id m188mr351260ybc.109.1472510962529; Mon, 29 Aug 2016 15:49:22 -0700 (PDT) Received: from evgadesktop.attlocal.net (108-232-152-155.lightspeed.tukrga.sbcglobal.net. [108.232.152.155]) by smtp.gmail.com with ESMTPSA id p67sm17573402ywe.2.2016.08.29.15.49.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 15:49:22 -0700 (PDT) From: Pranith Kumar To: qemu-devel@nongnu.org Date: Mon, 29 Aug 2016 18:49:16 -0400 Message-Id: <20160829224920.16686-2-bobby.prani@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160829224920.16686-1-bobby.prani@gmail.com> References: <20160829224920.16686-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:c09::244 Subject: [Qemu-devel] [PATCH v2 1/4] 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: alex.bennee@linaro.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..da92305 --- /dev/null +++ b/tests/tcg/arm/Makefile @@ -0,0 +1,45 @@ +BUILD_DIR=../../../build/ +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