You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by ol...@apache.org on 2008/02/28 02:04:47 UTC
svn commit: r631798 - in /incubator/pig/trunk: CHANGES.txt build.xml
Author: olga
Date: Wed Feb 27 17:04:46 2008
New Revision: 631798
URL: http://svn.apache.org/viewvc?rev=631798&view=rev
Log:
PIG-124: ability to run single test
Modified:
incubator/pig/trunk/CHANGES.txt
incubator/pig/trunk/build.xml
Modified: incubator/pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/pig/trunk/CHANGES.txt?rev=631798&r1=631797&r2=631798&view=diff
==============================================================================
--- incubator/pig/trunk/CHANGES.txt (original)
+++ incubator/pig/trunk/CHANGES.txt Wed Feb 27 17:04:46 2008
@@ -133,3 +133,6 @@
PIG-68 broke the build process by hardwiring hadoop15 jar for the purpose
of compile. Fixed that (olgan)
+
+ PIG-124 only run one test (ant test -Dtestcase=TestMapReduce) not the
+ complete test suite (xuzh vi olgan)
Modified: incubator/pig/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/pig/trunk/build.xml?rev=631798&r1=631797&r2=631798&view=diff
==============================================================================
--- incubator/pig/trunk/build.xml (original)
+++ incubator/pig/trunk/build.xml Wed Feb 27 17:04:46 2008
@@ -62,6 +62,7 @@
<property name="junit.hadoop.conf" value="" />
<property name="test.log.dir" value="${basedir}/test/logs"/>
<property name="junit.hadoop.conf" value="${user.home}/pigtest/conf/"/>
+ <property name="test.output" value="no"/>
<!-- ====================================================== -->
<!-- Stuff needed by all targets -->
@@ -211,7 +212,7 @@
<path refid="classpath"/>
</classpath>
<formatter type="${test.junit.output.format}" />
- <batchtest fork="yes" todir="${test.log.dir}">
+ <batchtest fork="yes" todir="${test.log.dir}" unless="testcase">
<fileset dir="test">
<include name="**/*Test*.java" />
<exclude name="**/TestLargeFile.java" />
@@ -219,6 +220,9 @@
<exclude name="**/TestPi.java" />
<exclude name="**/nightly/**" />
</fileset>
+ </batchtest>
+ <batchtest fork="yes" todir="${test.log.dir}" if="testcase">
+ <fileset dir="test" includes="**/${testcase}.java"/>
</batchtest>
</junit>
<fail if="tests.failed">Tests failed!</fail>