Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2941FDCDC for ; Mon, 12 Nov 2012 19:24:42 +0000 (UTC) Received: (qmail 22395 invoked by uid 500); 12 Nov 2012 19:24:41 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 22323 invoked by uid 500); 12 Nov 2012 19:24:40 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 22312 invoked by uid 99); 12 Nov 2012 19:24:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2012 19:24:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2012 19:24:39 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1D9B123889E1 for ; Mon, 12 Nov 2012 19:24:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1408413 - in /tomcat/tc6.0.x/branches/tomcat6-testing: BRANCH-README.txt build.properties.default build.xml Date: Mon, 12 Nov 2012 19:24:18 -0000 To: dev@tomcat.apache.org From: kkolinko@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121112192419.1D9B123889E1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kkolinko Date: Mon Nov 12 19:24:17 2012 New Revision: 1408413 URL: http://svn.apache.org/viewvc?rev=1408413&view=rev Log: Add support for running JUnit tests. Backport from Tomcat 7. Modified: tomcat/tc6.0.x/branches/tomcat6-testing/BRANCH-README.txt tomcat/tc6.0.x/branches/tomcat6-testing/build.properties.default tomcat/tc6.0.x/branches/tomcat6-testing/build.xml Modified: tomcat/tc6.0.x/branches/tomcat6-testing/BRANCH-README.txt URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/branches/tomcat6-testing/BRANCH-README.txt?rev=1408413&r1=1408412&r2=1408413&view=diff ============================================================================== --- tomcat/tc6.0.x/branches/tomcat6-testing/BRANCH-README.txt (original) +++ tomcat/tc6.0.x/branches/tomcat6-testing/BRANCH-README.txt Mon Nov 12 19:24:17 2012 @@ -10,7 +10,17 @@ Last catch-up merge: none yet TODO: * Backport support for running JUnit tests to the main /build.xml - file from Tomcat 7. Add . [Not Started] + file from Tomcat 7. Add . [Done] + + Notes: + - The < if="${execute.test.bio}"> construct requires Ant >= 1.8.0 + http://ant.apache.org/manual/properties.html#if+unless + + - Separate "test-bio", "test-nio", "test-apr" targets are there, + but they do not make much sense as the tests do not start Tomcat. + + - "test.jvmarg.egd=-Djava.security.egd=file:/dev/./urandom" + property was not ported, as it is not needed for Tomcat 6. * Drop useless test/build.xml [Not Started] Modified: tomcat/tc6.0.x/branches/tomcat6-testing/build.properties.default URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/branches/tomcat6-testing/build.properties.default?rev=1408413&r1=1408412&r2=1408413&view=diff ============================================================================== --- tomcat/tc6.0.x/branches/tomcat6-testing/build.properties.default (original) +++ tomcat/tc6.0.x/branches/tomcat6-testing/build.properties.default Mon Nov 12 19:24:17 2012 @@ -43,6 +43,19 @@ compile.source=1.5 compile.target=1.5 compile.debug=true +# ----- Build control flags ----- +# Note enabling validation uses Checkstyle which is LGPL licensed +execute.validate=false +execute.test.bio=true +execute.test.nio=true +# Still requires APR/native library to be present +execute.test.apr=true +# Stop testing if a failure occurs +test.haltonfailure=false +# Activate AccessLog during testing +test.accesslog=false + + base-apache.loc.1=http://www.apache.org/dist base-apache.loc.2=http://archive.apache.org/dist base-commons.loc.1=${base-apache.loc.1}/commons @@ -159,3 +172,9 @@ commons-daemon.native.src.loc.1=${base-c commons-daemon.native.src.loc.2=${base-commons.loc.2}/daemon/source/commons-daemon-${commons-daemon.version}-native-src.tar.gz commons-daemon.native.win.loc.1=${base-commons.loc.1}/daemon/binaries/windows/commons-daemon-${commons-daemon.version}-bin-windows.zip commons-daemon.native.win.loc.2=${base-commons.loc.2}/daemon/binaries/windows/commons-daemon-${commons-daemon.version}-bin-windows.zip + +# ----- JUnit Unit Test Suite, version 4.8 or later ----- +junit.home=${base.path}/junit4.8.2 +junit.lib=${junit.home} +junit.jar=${junit.lib}/junit-4.8.2.jar +junit.loc=http://cloud.github.com/downloads/KentBeck/junit/junit4.8.2.zip Modified: tomcat/tc6.0.x/branches/tomcat6-testing/build.xml URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/branches/tomcat6-testing/build.xml?rev=1408413&r1=1408412&r2=1408413&view=diff ============================================================================== --- tomcat/tc6.0.x/branches/tomcat6-testing/build.xml (original) +++ tomcat/tc6.0.x/branches/tomcat6-testing/build.xml Mon Nov 12 19:24:17 2012 @@ -58,8 +58,9 @@ - - + + + @@ -93,12 +94,28 @@ + + + + - + + + + + + + + + + + + + @@ -135,7 +152,7 @@ - + --> - + @@ -653,6 +670,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -662,8 +789,12 @@ + + + + --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org