Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 69654 invoked from network); 6 Jul 2009 13:33:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jul 2009 13:33:03 -0000 Received: (qmail 2520 invoked by uid 500); 6 Jul 2009 13:33:13 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 2473 invoked by uid 500); 6 Jul 2009 13:33:13 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 2465 invoked by uid 99); 6 Jul 2009 13:33:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 13:33:13 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.43.132] (HELO sca-es-mail-1.sun.com) (192.18.43.132) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 13:33:02 +0000 Received: from fe-sfbay-10.sun.com ([192.18.43.129]) by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n66DWfn7012842 for ; Mon, 6 Jul 2009 06:32:41 -0700 (PDT) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) id <0KMD00C0043NQZ00@fe-sfbay-10.sun.com> for derby-dev@db.apache.org; Mon, 06 Jul 2009 06:32:41 -0700 (PDT) Received: from richard-hillegas-computer.local ([unknown] [129.150.24.28]) by fe-sfbay-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) with ESMTPSA id <0KMD00I0N4AG1T70@fe-sfbay-10.sun.com> for derby-dev@db.apache.org; Mon, 06 Jul 2009 06:32:40 -0700 (PDT) Date: Mon, 06 Jul 2009 06:32:40 -0700 From: Rick Hillegas Subject: Re: [GSoC] Automated Testing for Improved dblook Implementation In-reply-to: <558af1840907050951w7696cfb5t8c40d415256abe42@mail.gmail.com> Sender: Richard.Hillegas@Sun.COM To: derby-dev@db.apache.org Message-id: <4A51FCF8.5010207@sun.com> References: <558af1840907050951w7696cfb5t8c40d415256abe42@mail.gmail.com> User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) X-Virus-Checked: Checked by ClamAV on apache.org Hiranya Jayathilaka wrote: > Hi Folks, > > Now that I've reached the final stages of my project to improve dblook > I think it's time I start thinking about writing some automated tests > for the new and improved dblook implementation. Dag came up with the > idea of getting dblook to generate a script against some reference > database and then run the script to create a copy of the reference > database. Then the copy will be compared with the reference database > to verify that all persistent objects like tables and views are > properly in place. Eventhough it sounds like lot of work it's > certainly doable and I think this is a great way to test dblook. We > will probably have to modify the script generated by dblook by filling > in the passwords. That should also take place in the automated > environment. > > I would like to know what the community thinks about this testing > strategy. Also I would appreciate if you can provide your own ideas on > this issue. Hi Hiranya, I think this sounds like a reasonable approach. The recently written UpgradeTrajectoryTest does something similar: it compares the metadata in Before and After databases. You may get some implementation ideas if you glance at that test. Two tricky bits about comparing metadata are 1) you need to remap UUIDs, 2) timestamp columns are unstable. UpgradeTrajectoryTest.normalizeRow() may help you sort through the expected differences. Hope this helps, -Rick > > > Thanks, > Hiranya Jayathilaka >