Received: from eggs.gnu.org ([2001:4830:134:3::10]:39948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsAXG-0000Sm-NA for qemu-devel@nongnu.org; Thu, 06 Oct 2016 11:24:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsAXC-0003u3-Hw for qemu-devel@nongnu.org; Thu, 06 Oct 2016 11:24:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsAXC-0003tg-7g for qemu-devel@nongnu.org; Thu, 06 Oct 2016 11:24:34 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C5353C05AA59 for ; Thu, 6 Oct 2016 15:24:33 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-35.ams2.redhat.com [10.36.112.35]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u96FOOsm031069 for ; Thu, 6 Oct 2016 11:24:33 -0400 From: Paolo Bonzini Date: Thu, 6 Oct 2016 17:24:20 +0200 Message-Id: <1475767463-12045-8-git-send-email-pbonzini@redhat.com> In-Reply-To: <1475767463-12045-1-git-send-email-pbonzini@redhat.com> References: <1475767463-12045-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 07/10] qemu-tech: move TCG test documentation to tests/tcg/README List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Paolo Bonzini --- qemu-tech.texi | 35 -------------------------- tests/tcg/README | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 35 deletions(-) create mode 100644 tests/tcg/README diff --git a/qemu-tech.texi b/qemu-tech.texi index 16780a1..adfb53b 100644 --- a/qemu-tech.texi +++ b/qemu-tech.texi @@ -31,7 +31,6 @@ @menu * Introduction:: * QEMU Internals:: -* Regression Tests:: @end menu @end ifnottex @@ -464,38 +463,4 @@ QEMU-SystemC, a hardware co-simulator. @end table -@node Regression Tests -@chapter Regression Tests - -In the directory @file{tests/}, various interesting testing programs -are available. They are used for regression testing. - -@menu -* test-i386:: -* linux-test:: -@end menu - -@node test-i386 -@section @file{test-i386} - -This program executes most of the 16 bit and 32 bit x86 instructions and -generates a text output. It can be compared with the output obtained with -a real CPU or another emulator. The target @code{make test} runs this -program and a @code{diff} on the generated output. - -The Linux system call @code{modify_ldt()} is used to create x86 selectors -to test some 16 bit addressing and 32 bit with segmentation cases. - -The Linux system call @code{vm86()} is used to test vm86 emulation. - -Various exceptions are raised to test most of the x86 user space -exception reporting. - -@node linux-test -@section @file{linux-test} - -This program tests various Linux system calls. It is used to verify -that the system call parameters are correctly converted between target -and host CPUs. - @bye diff --git a/tests/tcg/README b/tests/tcg/README new file mode 100644 index 0000000..5dcfb48 --- /dev/null +++ b/tests/tcg/README @@ -0,0 +1,80 @@ +This directory contains various interesting programs for +regression testing. + +The target "make test" runs the programs and, if applicable, +runs "diff" to detect mismatches between output on the host and +output on QEMU. + +i386 +==== + +test-i386 +--------- + +This program executes most of the 16 bit and 32 bit x86 instructions and +generates a text output, for comparison with the output obtained with +a real CPU or another emulator. + +The Linux system call modify_ldt() is used to create x86 selectors +to test some 16 bit addressing and 32 bit with segmentation cases. + +The Linux system call vm86() is used to test vm86 emulation. + +Various exceptions are raised to test most of the x86 user space +exception reporting. + +linux-test +---------- + +This program tests various Linux system calls. It is used to verify +that the system call parameters are correctly converted between target +and host CPUs. + +test-i386-fprem +--------------- + +runcom +------ + +test-mmap +--------- + +sha1 +---- + +hello-i386 +---------- + + +ARM +=== + +hello-arm +--------- + +test-arm-iwmmxt +--------------- + +MIPS +==== + +hello-mips +---------- + +hello-mipsel +------------ + +CRIS +==== +The testsuite for CRIS is in tests/tcg/cris. You can run it +with "make test-cris". + +LM32 +==== +The testsuite for LM32 is in tests/tcg/lm32. You can run it +with "make test-lm32". + +Other architectures +=================== +Other architectures have testsuites in subdirectories of tests/tcg. +Please consult the makefiles in those directories. -- 2.7.4