Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfwoN-0003B3-QY for qemu-devel@nongnu.org; Wed, 17 Sep 2008 09:11:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfwoM-0003AU-Bg for qemu-devel@nongnu.org; Wed, 17 Sep 2008 09:11:15 -0400 Received: from [199.232.76.173] (port=54153 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfwoM-0003AP-7A for qemu-devel@nongnu.org; Wed, 17 Sep 2008 09:11:14 -0400 Received: from mel.act-europe.fr ([212.99.106.210]:50968) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KfwoL-0001FL-Se for qemu-devel@nongnu.org; Wed, 17 Sep 2008 09:11:14 -0400 Received: from [10.10.0.139] (ulanbator.act-europe.fr [10.10.0.139]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id C73E2290028 for ; Wed, 17 Sep 2008 15:11:09 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v753.1) Message-Id: <71892059-3CDF-4D9B-B422-EB60A760AB16@adacore.com> Content-Type: multipart/mixed; boundary=Apple-Mail-29-684296881 From: Tristan Gingold Date: Wed, 17 Sep 2008 15:12:28 +0200 Subject: [Qemu-devel] [PATCH] alpha: improve testsuite Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Apple-Mail-29-684296881 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi, misc tiny patches: * add a 'check' target to the Makefile * split code in crt.s to create the _exit syscall; also use the value of main() as exit status Tristan. Signed-off-by: Tristan Gingold --Apple-Mail-29-684296881 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name=q-alpha8.diff Content-Disposition: attachment; filename=q-alpha8.diff Index: tests/alpha/crt.s =================================================================== --- tests/alpha/crt.s (revision 5239) +++ tests/alpha/crt.s (working copy) @@ -9,12 +9,15 @@ .prologue 0 ldq $27,main($29) !literal!1 jsr $26,($27) + or $0,$0,$16 + .end _start + .globl _exit +_exit: lda $0,1 callsys call_pal 0 - .end _start .globl write write: Index: tests/alpha/Makefile =================================================================== --- tests/alpha/Makefile (revision 5239) +++ tests/alpha/Makefile (working copy) @@ -5,7 +5,7 @@ SIM=../../alpha-linux-user/qemu-alpha CFLAGS=-O -LINK=$(CC) -v -o $@ crt.o $< -nostdlib +LINK=$(CC) -o $@ crt.o $< -nostdlib TESTS=test-cond test-cmov @@ -23,7 +23,10 @@ test-cmov: test-cmov.o crt.o $(LINK) +check: $(TESTS) + for f in $(TESTS); do $(SIM) $$f || exit 1; done + clean: $(RM) *.o *~ hello-alpha $(TESTS) -.PHONY: clean all +.PHONY: clean all check --Apple-Mail-29-684296881--