Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 16570 invoked from network); 27 Oct 2006 12:43:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 12:43:20 -0000 Received: (qmail 16799 invoked by uid 500); 27 Oct 2006 12:43:28 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 16763 invoked by uid 500); 27 Oct 2006 12:43:28 -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 16754 invoked by uid 99); 27 Oct 2006 12:43:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 05:43:28 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mike.fursov@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 05:43:16 -0700 Received: by ug-out-1314.google.com with SMTP id y2so809551uge for ; Fri, 27 Oct 2006 05:42:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=oKHp0DN3QUsSjTyVkvtVs18tFkWyWkgK49SJoTVS7YcBd0qbd6jx3OeLXrx/2aV/NzKZhmfXUifjCLiIA9cexy96lUlAkD2IyInQ2jv7HvdZTUXBnwZ4zyKHoNn6DOz1Th7s/EOxmLTKoQtJnmGaOEauTRtczkuBuyd8l0wJNuI= Received: by 10.78.128.11 with SMTP id a11mr4383401hud; Fri, 27 Oct 2006 05:42:54 -0700 (PDT) Received: by 10.78.182.4 with HTTP; Fri, 27 Oct 2006 05:42:54 -0700 (PDT) Message-ID: Date: Fri, 27 Oct 2006 19:42:54 +0700 From: "Mikhail Fursov" To: harmony-dev@incubator.apache.org, geir@pobox.com Subject: Re: [drlvm][jit] Internal testing framework for Jitrino.OPT compiler In-Reply-To: <4541FA3C.6090902@pobox.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_42329_18453561.1161952974584" References: <469bff730609220335g4969730aydc7a2042a7de94ec@mail.gmail.com> <4541FA3C.6090902@pobox.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_42329_18453561.1161952974584 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Geir, I also thought about additional cmd-line param to compile and link Jitrino.dll with tests. I hope we will have a lot of tests in future, so IMO it's a good idea to separate it from default Jitrino build. I'll try to provide this switch with the next patch and that could be a good time to add framework into the trunk. Another issue is how to run the tests. I added 'junit_integration' into the patch - so we already have a solution. On 10/27/06, Geir Magnusson Jr. wrote: > > While you're at it, I'd like to get this patches in, but we probably > need a new target for building, as running normally with this framework > compiled in leads to problems. > > Can we find a way to make it a different build target, or at least a flag > > -Dwith.jitrino.test.framework > > or something? > > (Apologies if you've already done that :) > > geir > > Mikhail Fursov wrote: > > Thank you Ivan. > > The problem you found with TestRegistry.cpp will be fixed with the next > my > > patch for Jitrino testing framework. > > I'll check all of your tests this weekend and post comments. > > > > On 10/27/06, Ivan Kollegov wrote: > >> > >> Hi JIT developers. > >> > >> I've wrote 4 templates and about 20 tests to test Jitrino's internal > >> algorithms. I put them all into JIRA-1586 > >> > >> Also I've founded a problem with testing simplifier.cpp (test > >> testSimplifyIf). The problem was in > >> > >> FlowGraph::foldBranch(ControlFlowGraph& fg, Node* block, BranchInst* > >> br, bool isTaken) > >> > >> { > >> assert(br == block->getLastInst()); > >> assert(block->getOutDegree() == 2); > >> fg.removeEdge(block->getOutEdge(isTaken ? Edge::Kind_False : > >> Edge::Kind_True)); > >> br->unlink(); > >> } > >> > >> The variable "block" can be null. This problem can be fixed with patch > >> in JIRA-1986 > >> > >> Also, I had problems with race condition with initializing of static > >> section in TestRegistry* TestRegistry::getInstance(){ > >> > >> Could you check the changes? > >> > > > > > > > -- Mikhail Fursov ------=_Part_42329_18453561.1161952974584--