You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by cu...@apache.org on 2007/04/07 01:18:06 UTC
svn commit: r526314 - in /lucene/hadoop/trunk: CHANGES.txt build.xml
src/contrib/build-contrib.xml
Author: cutting
Date: Fri Apr 6 16:18:06 2007
New Revision: 526314
URL: http://svn.apache.org/viewvc?view=rev&rev=526314
Log:
HADOOP-1217. Add a test.timeout property to build.xml, so that long running unit tests may be automatically timed out. Contributed by Nigel.
Modified:
lucene/hadoop/trunk/CHANGES.txt
lucene/hadoop/trunk/build.xml
lucene/hadoop/trunk/src/contrib/build-contrib.xml
Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=526314&r1=526313&r2=526314
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Fri Apr 6 16:18:06 2007
@@ -119,6 +119,10 @@
MiniDFSCluster to start and stop NameNode/DataNodes.
(Nigel Daley via tomwhite)
+38. HADOOP-1217. Add test.timeout property to build.xml, so that
+ long-running unit tests may be automatically terminated.
+ (Nigel Daley via cutting)
+
Release 0.12.3 - 2007-04-06
Modified: lucene/hadoop/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/build.xml?view=diff&rev=526314&r1=526313&r2=526314
==============================================================================
--- lucene/hadoop/trunk/build.xml (original)
+++ lucene/hadoop/trunk/build.xml Fri Apr 6 16:18:06 2007
@@ -48,6 +48,7 @@
<property name="test.include" value="Test*"/>
<property name="test.classpath.id" value="test.classpath"/>
<property name="test.output" value="no"/>
+ <property name="test.timeout" value="900000"/>
<property name="test.junit.output.format" value="plain"/>
<property name="libhdfs.test.conf.dir" value="${libhdfs.src}/tests/conf"/>
@@ -438,7 +439,7 @@
<delete dir="${test.log.dir}"/>
<mkdir dir="${test.log.dir}"/>
<junit showoutput="${test.output}" printsummary="yes" haltonfailure="no"
- fork="yes" maxmemory="256m" dir="${basedir}"
+ fork="yes" maxmemory="256m" dir="${basedir}" timeout="${test.timeout}"
errorProperty="tests.failed" failureProperty="tests.failed">
<sysproperty key="test.build.data" value="${test.build.data}"/>
<sysproperty key="hadoop.log.dir" value="${test.log.dir}"/>
Modified: lucene/hadoop/trunk/src/contrib/build-contrib.xml
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/build-contrib.xml?view=diff&rev=526314&r1=526313&r2=526314
==============================================================================
--- lucene/hadoop/trunk/src/contrib/build-contrib.xml (original)
+++ lucene/hadoop/trunk/src/contrib/build-contrib.xml Fri Apr 6 16:18:06 2007
@@ -21,6 +21,8 @@
<property name="conf.dir" location="${hadoop.root}/conf"/>
<property name="test.junit.output.format" value="plain"/>
+ <property name="test.output" value="no"/>
+ <property name="test.timeout" value="900000"/>
<property name="build.dir" location="${hadoop.root}/build/contrib/${name}"/>
<property name="build.classes" location="${build.dir}/classes"/>
<property name="build.test" location="${build.dir}/test"/>
@@ -136,7 +138,8 @@
<junit
printsummary="yes" showoutput="${test.output}"
haltonfailure="no" fork="yes" maxmemory="256m"
- errorProperty="tests.failed" failureProperty="tests.failed">
+ errorProperty="tests.failed" failureProperty="tests.failed"
+ timeout="${test.timeout}">
<sysproperty key="test.build.data" value="${build.test}/data"/>
<sysproperty key="build.test" value="${build.test}"/>