Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 13560 invoked from network); 9 Nov 2007 15:40:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2007 15:40:18 -0000 Received: (qmail 90581 invoked by uid 500); 9 Nov 2007 15:40:06 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 90503 invoked by uid 500); 9 Nov 2007 15:40:06 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 90492 invoked by uid 99); 9 Nov 2007 15:40:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 07:40:06 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 15:40:54 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 550B61A9832; Fri, 9 Nov 2007 07:39:54 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r593571 - in /db/derby/code/trunk: ./ build.xml java/testing/org/apache/derby/PackagePrivateTestSuite.java java/testing/org/apache/derby/build.xml tools/ant/properties/dirs.properties Date: Fri, 09 Nov 2007 15:39:53 -0000 To: derby-commits@db.apache.org From: kristwaa@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071109153954.550B61A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kristwaa Date: Fri Nov 9 07:39:53 2007 New Revision: 593571 URL: http://svn.apache.org/viewvc?rev=593571&view=rev Log: DERBY-3149: Add ant targets for building and running the package private tests against the classes directories. Added two targets; 'pptesting' and 'junit-pptesting'. Package-private tests are currently only run against the classes-directory, and the have to be run manually. They are not part of any other target/suite yet. Patch file: derby-3149-1b.diff Added: db/derby/code/trunk/java/testing/org/apache/derby/PackagePrivateTestSuite.java (with props) db/derby/code/trunk/java/testing/org/apache/derby/build.xml (with props) Modified: db/derby/code/trunk/ (props changed) db/derby/code/trunk/build.xml db/derby/code/trunk/tools/ant/properties/dirs.properties Propchange: db/derby/code/trunk/ ------------------------------------------------------------------------------ --- svn:ignore (original) +++ svn:ignore Fri Nov 9 07:39:53 2007 @@ -1,4 +1,5 @@ classes +classes.pptesting classes.storeless changenumber.properties jars Modified: db/derby/code/trunk/build.xml URL: http://svn.apache.org/viewvc/db/derby/code/trunk/build.xml?rev=593571&r1=593570&r2=593571&view=diff ============================================================================== --- db/derby/code/trunk/build.xml (original) +++ db/derby/code/trunk/build.xml Fri Nov 9 07:39:53 2007 @@ -38,7 +38,7 @@ - + @@ -392,10 +392,14 @@ - + + + + + @@ -453,6 +457,7 @@ + @@ -1839,6 +1844,26 @@ + + + + + + + + + + + + + + Added: db/derby/code/trunk/java/testing/org/apache/derby/PackagePrivateTestSuite.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derby/PackagePrivateTestSuite.java?rev=593571&view=auto ============================================================================== --- db/derby/code/trunk/java/testing/org/apache/derby/PackagePrivateTestSuite.java (added) +++ db/derby/code/trunk/java/testing/org/apache/derby/PackagePrivateTestSuite.java Fri Nov 9 07:39:53 2007 @@ -0,0 +1,47 @@ +/* + + Derby - Class org.apache.derby.PackagePrivateTestSuite + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ +package org.apache.derby; + +import junit.framework.Test; +import junit.framework.TestSuite; + +import org.apache.derbyTesting.junit.BaseTestCase; + +public class PackagePrivateTestSuite + extends BaseTestCase { + + /** + * Use the {@link suite} method instead. + */ + private PackagePrivateTestSuite(String name) { + super(name); + } + + public static Test suite() throws Exception { + + TestSuite suite = new TestSuite("Package-private tests"); + + suite.addTest(org.apache.derby.impl.jdbc._Suite.suite()); + + return suite; + } + +} Propchange: db/derby/code/trunk/java/testing/org/apache/derby/PackagePrivateTestSuite.java ------------------------------------------------------------------------------ svn:eol-style = native Added: db/derby/code/trunk/java/testing/org/apache/derby/build.xml URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derby/build.xml?rev=593571&view=auto ============================================================================== --- db/derby/code/trunk/java/testing/org/apache/derby/build.xml (added) +++ db/derby/code/trunk/java/testing/org/apache/derby/build.xml Fri Nov 9 07:39:53 2007 @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Propchange: db/derby/code/trunk/java/testing/org/apache/derby/build.xml ------------------------------------------------------------------------------ svn:eol-style = native Modified: db/derby/code/trunk/tools/ant/properties/dirs.properties URL: http://svn.apache.org/viewvc/db/derby/code/trunk/tools/ant/properties/dirs.properties?rev=593571&r1=593570&r2=593571&view=diff ============================================================================== --- db/derby/code/trunk/tools/ant/properties/dirs.properties (original) +++ db/derby/code/trunk/tools/ant/properties/dirs.properties Fri Nov 9 07:39:53 2007 @@ -33,6 +33,7 @@ class.dir=classes out.dir=${basedir}/${class.dir} out.storeless.dir=${basedir}/${class.dir}.storeless +out.pptesting.dir=${basedir}/${class.dir}.pptesting outcom.dir=${out.dir}/${com.dir} out.javadoc.dir=${basedir}/javadoc out.testdir=${basedir}/testout_${jdk} @@ -56,6 +57,7 @@ derby.build.src.dir=${derbysrc.dir}/build derby.demo.src.dir=${derbysrc.dir}/demo derby.testing.src.dir=${derbysrc.dir}/testing +derby.pptesting.src.dir=${derby.testing.src.dir}/org/apache/derby derby.storeless.src.dir=${derbysrc.dir}/storeless derby.metadata.src.dir=${derby.engine.src.dir}/org/apache/derby/impl/jdbc