Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 13614 invoked from network); 13 Sep 2005 02:01:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2005 02:01:20 -0000 Received: (qmail 72013 invoked by uid 500); 13 Sep 2005 02:01:19 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 72000 invoked by uid 99); 13 Sep 2005 02:01:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2005 19:01:19 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of karan.malhi@gmail.com designates 64.233.184.206 as permitted sender) Received: from [64.233.184.206] (HELO wproxy.gmail.com) (64.233.184.206) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2005 19:01:29 -0700 Received: by wproxy.gmail.com with SMTP id i17so1913714wra for ; Mon, 12 Sep 2005 19:01:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type; b=dLjJrZqtRWa0mKBx/a/MwwNA9W6o5Kfev4so/3imGu2BIsOUWc/frd8JAx8exCUTG9UZCo2bYN2UrtPAjS3iP+y4z5QWx9MfCgQN+tZZAs9BM3o3deMAEz2Zpd6WlaDiK4QjxLEDvVR1r6LKpdrbMuK8QWeFWZpaX75FadoEAR0= Received: by 10.54.2.14 with SMTP id 14mr162552wrb; Mon, 12 Sep 2005 19:01:16 -0700 (PDT) Received: from ?192.168.0.2? ( [70.104.84.241]) by mx.gmail.com with ESMTP id 15sm5928wrl.2005.09.12.19.01.16; Mon, 12 Sep 2005 19:01:16 -0700 (PDT) Message-ID: <4326329B.8040906@gmail.com> Date: Mon, 12 Sep 2005 21:59:55 -0400 From: karan malhi User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jdo-dev@db.apache.org Subject: JDO-131 patch (updated) Content-Type: multipart/mixed; boundary="------------040700030904070901030208" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------040700030904070901030208 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Here is the patch for JDO-131 incorporating Craig and Michael's recommendations. -- Karan Singh --------------040700030904070901030208 Content-Type: text/plain; name="JDO_Test.java.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="JDO_Test.java.patch" Index: C:/ApacheJDO/trunk/tck20/test/java/org/apache/jdo/tck/JDO_Test.java =================================================================== --- C:/ApacheJDO/trunk/tck20/test/java/org/apache/jdo/tck/JDO_Test.java (revision 279926) +++ C:/ApacheJDO/trunk/tck20/test/java/org/apache/jdo/tck/JDO_Test.java (working copy) @@ -137,6 +137,13 @@ /** Name of the file contaninig the properties for the PMF. */ protected static String PMFProperties = System.getProperty("PMFProperties"); + /** String indicating whether to clean up data after tests or not. The value can be either + * "true" or "false". If "false" then test will not clean up data from database. + * The default value is "true". + */ + protected static boolean cleanupData = + System.getProperty("jdo.tck.cleanupaftertest", "true").equalsIgnoreCase("true"); + /** The Properties object for the PersistenceManagerFactory. */ protected static Properties PMFPropertiesObject; @@ -260,7 +267,9 @@ pmf = null; try { - localTearDown(); + if (cleanupData) { + localTearDown(); + } } catch (Throwable t) { setTearDownThrowable("localTearDown", t); --------------040700030904070901030208 Content-Type: text/plain; name="maven.xml.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="maven.xml.patch" Index: C:/ApacheJDO/trunk/tck20/maven.xml =================================================================== --- C:/ApacheJDO/trunk/tck20/maven.xml (revision 279926) +++ C:/ApacheJDO/trunk/tck20/maven.xml (working copy) @@ -41,7 +41,8 @@ Options for this project are: -Djdo.tck.cfglist=xxx - a list of configuration files (must be in test/conf) -Djdo.tck.dblist=xxx - a list of databases - -Djdo.tck.identitytypes=xxx - a list of identity types (applicationidentity, datastoreidentity) + -Djdo.tck.identitytypes=xxx - a list of identity types (applicationidentity, datastoreidentity) + -Djdo.tck.cleanupaftertest=xxx - true/false. Setting it to false will retain data in database after test. This will allow inspection of data after test is run. Default is true Examples: maven -Djdo.tck.identitytypes=datastoreidentity installSchema @@ -314,6 +315,8 @@ value="${jdo.tck.exclude}"/> + @@ -361,6 +364,8 @@ value="${jdo.tck.exclude}"/> + --------------040700030904070901030208 Content-Type: text/plain; name="project.properties.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="project.properties.patch" Index: C:/ApacheJDO/trunk/tck20/project.properties =================================================================== --- C:/ApacheJDO/trunk/tck20/project.properties (revision 279926) +++ C:/ApacheJDO/trunk/tck20/project.properties (working copy) @@ -42,7 +42,8 @@ maven.junit.dir = ${jdo.tck.testdir} maven.junit.sysproperties = PMFProperties PMFProperties = jdori.properties - +# Setting this property to false will turn off cleanup of data from database to inspect database contents after test run +jdo.tck.cleanupaftertest = true # JDO TCK settings jdo.tck.dblist=derby jdo.tck.identitytypes=applicationidentity datastoreidentity --------------040700030904070901030208--