Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 81397 invoked from network); 2 Nov 2006 14:07:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2006 14:07:33 -0000 Received: (qmail 43939 invoked by uid 500); 2 Nov 2006 14:07:41 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 43906 invoked by uid 500); 2 Nov 2006 14:07:41 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 43897 invoked by uid 99); 2 Nov 2006 14:07:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 06:07:41 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of gcjhd-harmony-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 06:07:24 -0800 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GfdDf-0001r8-Nk for harmony-dev@incubator.apache.org; Thu, 02 Nov 2006 15:07:00 +0100 Received: from msfwpr01.ims.intel.com ([62.118.80.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Nov 2006 15:06:59 +0100 Received: from gshimansky by msfwpr01.ims.intel.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Nov 2006 15:06:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: harmony-dev@incubator.apache.org From: Gregory Shimansky Subject: Re: [drlvm][jvmti][testing] I want to add JVMTI tests to drlvm commit checks Date: Thu, 02 Nov 2006 17:06:38 +0300 Lines: 51 Message-ID: References: <200610302324.34453.gshimansky@gmail.com> <200611020142.48176.gshimansky@gmail.com> <45496E07.1060702@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: msfwpr01.ims.intel.com User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) In-Reply-To: <45496E07.1060702@pobox.com> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Geir Magnusson Jr. wrote: > Why not use junit? If you mean why not use junit to loop over tests, then it is not the case. I've used junit to do this in my work. The loop which I wrote here is the loop over components in the build.xml of drlvm. If you run "build smoke.test" you'll see that the same tests are repeated several times (you have to be patient to see this). This is done because build loops over all known VM components like vmi, vmocode, gc, interpreter, etc. It is Ok for building, and it is done exactly for building, but it is not Ok for testing because repeating tests for the whole JVM for each of its components makes no sense. > Gregory Shimansky wrote: >> On Wednesday 01 November 2006 19:48 Alexey Varlamov wrote: >>> Gregory, >>> >>> I observed similar quirks with paths while intergrating kernel tests >>> into build. AFAIU the "Grand Design" is the following: there are >>> abstracted targets and isolated component descriptors; build system >>> iterates through all components and tries to apply given target to >>> each component. So there are various tricks to stop it running tests >>> multiple times a-la "recurring inclusion protection" in C headers. >>> I do not grok how it calculates dependencies though, but it is quite >>> easy to drive it mad and it starts doing wrong sequence of targets and >>> picks wrong components etc. >>> So I just snipped off that fanciful machinery and made simple subant >>> for "kernel.test" target - see its definition in build/make/build.xml, >>> and compare with nearby "smoke.test" one. >> >> Ok I've made it though all of the interesting ant tricks and created >> my own jvmti.test target. I noticed the difference of how kernel.test >> target is included into build.xml as compared to smoke.test or unit.test. >> >> AFAIU only "test" target does actually work to run only once and for >> the required number of modes (jit, interpreter). This is done with a >> special workaround for "test" target in build.xml, it has its own >> processing. But inclusion of smoke.test and unit.test in build.xml >> right now makes it run in a loop for all components for which tests >> don't have any relation to. >> >> I am still experimenting with the build, it might be I'll find a >> solution for individual test categories so it would be possible to run >> them separately from the general "test" target. >> > -- Gregory