HADOOP-7167. Allow using a file to exclude certain tests from build. Contributed by Todd Lipcon.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1079071 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2011-03-08 01:33:52 +00:00
parent aac5472491
commit 6d9ded1072
2 changed files with 6 additions and 1 deletions

View File

@ -69,6 +69,8 @@ Trunk (unreleased changes)
HADOOP-7159. RPC server should log the client hostname when read exception
happened. (Scott Chen via todd)
HADOOP-7167. Allow using a file to exclude certain tests from build. (todd)
OPTIMIZATIONS
BUG FIXES

View File

@ -95,6 +95,7 @@
<property name="test.core.build.classes" value="${test.build.dir}/core/classes"/>
<property name="test.all.tests.file" value="${test.src.dir}/all-tests"/>
<property name="test.exclude.file" value="/dev/null" />
<property name="javadoc.link.java"
value="http://java.sun.com/javase/6/docs/api/"/>
@ -770,13 +771,15 @@
excludes="**/${test.exclude}.java aop/** system/**">
<patternset>
<includesfile name="@{test.file}"/>
<excludesfile name="${test.exclude.file}"/>
</patternset>
</fileset>
</batchtest>
<batchtest todir="${test.build.dir}" if="tests.notestcase.fi">
<fileset dir="@{fileset.dir}/aop"
includes="**/${test.include}.java"
excludes="**/${test.exclude}.java" />
excludes="**/${test.exclude}.java"
excludesfile="${test.exclude.file}" />
</batchtest>
<batchtest todir="@{test.dir}" if="tests.testcase">
<fileset dir="@{fileset.dir}/core"