Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 57826 invoked from network); 11 Sep 2007 01:55:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2007 01:55:57 -0000 Received: (qmail 37509 invoked by uid 500); 11 Sep 2007 01:55:49 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 37477 invoked by uid 500); 11 Sep 2007 01:55:49 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 37468 invoked by uid 99); 11 Sep 2007 01:55:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 18:55:49 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sean.xx.qiu@gmail.com designates 209.85.132.249 as permitted sender) Received: from [209.85.132.249] (HELO an-out-0708.google.com) (209.85.132.249) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 01:55:47 +0000 Received: by an-out-0708.google.com with SMTP id b21so202409ana for ; Mon, 10 Sep 2007 18:55:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=D8VU74O/6xc9oKiA05zWGCiFfMm28EelksguySqfbsM=; b=B4N1gBwz+KJMRkd+btGbqhLgtaOZLDJnQ6/AwXgSBieVfSEZ65UOxdfSiG7xyx2Hh9BFrMONCAvlobnnt1Y9WtoU+LEa9MxUXsjOJR8pk4pyC/aGroZYiXZFrn+52TcsIFg6oK20P+q9oWn22+qZUcjxHdHOuVZmrUVtZgV8sHE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=apEEP4lXmNYVBhlvgJSWg5nJ9OYNoaITPFA5aPxAmzw4eLhd78FSHFW1zYcb36DxOSfqsk53Ho97PsCXB6zPpJErueQ7mlOmOAHjBOacQZOccOnnrRP+phfKy/rumUuhlPQPRQLQ2u87hDVoXyLDhLbOAi7mun/Rqlb9mLZc3Qs= Received: by 10.100.10.20 with SMTP id 20mr5561181anj.1189475726037; Mon, 10 Sep 2007 18:55:26 -0700 (PDT) Received: by 10.100.144.16 with HTTP; Mon, 10 Sep 2007 18:55:26 -0700 (PDT) Message-ID: <94d710af0709101855y35270de7qd39434fc8dc16905@mail.gmail.com> Date: Tue, 11 Sep 2007 09:55:26 +0800 From: "Sean Qiu" To: dev@harmony.apache.org Subject: Re: [build test] Integrate Emma into BTI 2.0 to get code coverage report In-Reply-To: <94d710af0709092338t72358427ua81d7e8d87ed1216@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4831_11001798.1189475726033" References: <94d710af0709092338t72358427ua81d7e8d87ed1216@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_4831_11001798.1189475726033 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Or we can add a new adapor for the emma task, called "emma" as a example. The benifit is we needn't modify the main script. 1. emma/parameter.xml make it depends "classlib" and "drlvm", get the latest built jre for instrument. tell the instrumented jre location as a shared parameter 2. emma/adaptor.xml instrument the jre 3. setup wanted test to get coverage report. set wanted test suites' depends parameter to "emma", and take the instrumented jre as the test jre. 4. run the test to get coverage report But i think there is a little violation against the bti adaptor's abstraction, so i prefer the previous one. Any suggestion or commets? 2007/9/10, Sean Qiu : > > Hi, guys > > Shall we integrate the emma into our BTI 2.0 to get the test coverage > report? > AFAIK, Robert has spent a number of time on using our unit test to emma > coverage report. > Maybe we can generate the coverage from the BTI test besides our unit > test. > > IMHO, we can maintain a individual target as the "run-cc" target in > script/main.xml, like "run-coverage" or something else. > It will set up its requisite like an instrumented jre to run the test. > Before running the test, we need to add value="-Xbootclasspath/p:${instrumented-classlib}"> for each adaptor's > tested jvm task. > > Finally, the "run-coverage" command call each adaptor as normal except > assigning the ${instrumented-classlib} to the instrumented classlib jars. > The generated report can be placed to build/coverage-report or some more > proper places. > > I think this approach can extend the BTI 2.0 without > too many modifications. > Are there any comments about this? Or any other approach? Any > suggestion is welcomed. > > -- > Sean Qiu > China Software Development Lab, IBM > -- Sean Qiu China Software Development Lab, IBM ------=_Part_4831_11001798.1189475726033--