From patchwork Fri Aug 19 17:00:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pranith Kumar X-Patchwork-Id: 9290665 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 E23B8607FF for ; Fri, 19 Aug 2016 17:12:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFF3D294E7 for ; Fri, 19 Aug 2016 17:12:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4B04294E9; Fri, 19 Aug 2016 17:12:36 +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 934FA294E8 for ; Fri, 19 Aug 2016 17:12:35 +0000 (UTC) Received: from localhost ([::1]:58271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1banLN-0003xJ-E9 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 19 Aug 2016 13:12:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ban9p-0002qd-7m for qemu-devel@nongnu.org; Fri, 19 Aug 2016 13:00:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ban9i-0000BM-1A for qemu-devel@nongnu.org; Fri, 19 Aug 2016 13:00:37 -0400 Received: from mail-yw0-x243.google.com ([2607:f8b0:4002:c05::243]:33365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ban9h-0000BB-T9 for qemu-devel@nongnu.org; Fri, 19 Aug 2016 13:00:29 -0400 Received: by mail-yw0-x243.google.com with SMTP id z8so1047397ywa.0 for ; Fri, 19 Aug 2016 10:00:29 -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=RYw0CJpZuKh2Q2W0MmCSW1/EEdYrfjpuY2+Iw4vapQwH1+H68uH7s3kyuWJHkTox++ +KGAMbGCZkHoL9V/EdazaGGJsZ0M/qaLSGE3mmEwurXHMCcezUBi/Sw9i0ccxnObRIPP EQYjAc0GdQouer7LJdetFZIG3sUkPZlUxGPY/GBjwZSD1lNrx8Tk507N63NTlU1si5ND aAkDkNNsScweIV0vjDah0wX0rt19EVynkKqg1eY8c4i3mIhl00+ENp7m2n7CQvAI2FXH EM4v0hfR+03JUFnQoSBKKrZy9Uv7gZZtKbQt3QF/SL+nWIfWp+LeanRcwIoc2JK/jUTT 8iGg== 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=TgH77hgMRvAUmNIJuhNgdAnd2T2Aviq2x6EcJbrcwJFlaJ3lwzP/lmW8+QJs1JU30i U2BO7fF7DA+AtP6HXPLvvT1qGV3OCxgu7MmPLB5xLAkn7PAL+dus7ocVCOXj+6iiKqOk YSxUWCSjRTt/OkJbOva81G5S0XSDgsXqM+9kv2sKGA6tbFsxuV+rq+MbQHvaHFjrgKcK uSYl+FVk+Gpq0G+YmFjg2cmtgLXmkwQqT8/YjZd1SUK2814R8DafYzDaea516fbaPIXI F925r4NAu3p+BBOlFjstX9RPUuCgF3anO6RyWbdlWVc8o3EiswUJsOz4ke6UPEHuazCJ s3Hw== X-Gm-Message-State: AEkoouuwmxSkEDmBXy2hY4xeKwCtRpLcPE1HIdUgrkgVAifskFh8kEpdjsE6UDEiO/I4Bg== X-Received: by 10.129.4.201 with SMTP id 192mr7475878ywe.245.1471626029385; Fri, 19 Aug 2016 10:00:29 -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 o78sm1951766ywo.40.2016.08.19.10.00.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Aug 2016 10:00:28 -0700 (PDT) From: Pranith Kumar To: qemu-devel@nongnu.org Date: Fri, 19 Aug 2016 13:00:23 -0400 Message-Id: <20160819170025.22345-3-bobby.prani@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160819170025.22345-1-bobby.prani@gmail.com> References: <20160819170025.22345-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::243 Subject: [Qemu-devel] [RFC PATCH 2/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: peter.maydell@linaro.org, pbonzini@redhat.com, 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