You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by ya...@apache.org on 2010/06/11 03:35:26 UTC
svn commit: r953530 - in /hadoop/pig/branches/branch-0.7/contrib/zebra:
CHANGES.txt build.xml
Author: yanz
Date: Fri Jun 11 01:35:25 2010
New Revision: 953530
URL: http://svn.apache.org/viewvc?rev=953530&view=rev
Log:
PIG-1444 Addition of test-smoke ant target (gauravj via yanz)
Modified:
hadoop/pig/branches/branch-0.7/contrib/zebra/CHANGES.txt
hadoop/pig/branches/branch-0.7/contrib/zebra/build.xml
Modified: hadoop/pig/branches/branch-0.7/contrib/zebra/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/pig/branches/branch-0.7/contrib/zebra/CHANGES.txt?rev=953530&r1=953529&r2=953530&view=diff
==============================================================================
--- hadoop/pig/branches/branch-0.7/contrib/zebra/CHANGES.txt (original)
+++ hadoop/pig/branches/branch-0.7/contrib/zebra/CHANGES.txt Fri Jun 11 01:35:25 2010
@@ -4,6 +4,8 @@ Trunk (unreleased changes)
INCOMPATIBLE CHANGES
+ PIG-1444 Addition of test-smoke ant target (gauravj via yanz)
+
PIG-1357 Addition of Test cases of map-side GROUP-BY (yanz)
PIG-1282 make Zebra's pig test cases run on real cluster (chaow via yanz)
Modified: hadoop/pig/branches/branch-0.7/contrib/zebra/build.xml
URL: http://svn.apache.org/viewvc/hadoop/pig/branches/branch-0.7/contrib/zebra/build.xml?rev=953530&r1=953529&r2=953530&view=diff
==============================================================================
--- hadoop/pig/branches/branch-0.7/contrib/zebra/build.xml (original)
+++ hadoop/pig/branches/branch-0.7/contrib/zebra/build.xml Fri Jun 11 01:35:25 2010
@@ -177,6 +177,54 @@ to call at top-level: ant deploy-contrib
</target>
<!-- ================================================================== -->
+ <!-- Run smoke tests -->
+ <!-- ================================================================== -->
+ <target name="test-smoke" depends="compile-test, compile" if="test.available" description="Run smoke test">
+ <echo message="contrib: ${name}"/>
+ <delete dir="${pig.log.dir}"/>
+ <mkdir dir="${pig.log.dir}"/>
+ <delete dir="${build.test}/data"/>
+ <mkdir dir="${build.test}/data"/>
+ <junit
+ printsummary="yes" showoutput="${test.output}"
+ haltonfailure="no" fork="yes" maxmemory="1024m"
+ 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}"/>
+ <sysproperty key="contrib.name" value="${name}"/>
+ <sysproperty key="hadoop.log.dir" value="${pig.log.dir}"/>
+ <sysproperty key="whichCluster" value="miniCluster"/>
+
+ <!-- requires fork=yes for:
+ relative File paths to use the specified user.dir
+ classpath to use build/contrib/*.jar
+ -->
+ <sysproperty key="user.dir" value="${build.test}/data"/>
+
+ <sysproperty key="fs.default.name" value="${fs.default.name}"/>
+ <sysproperty key="pig.test.localoutputfile" value="${pig.test.localoutputfile}"/>
+ <sysproperty key="pig.log.dir" value="${pig.log.dir}"/>
+ <classpath refid="test.classpath"/>
+ <formatter type="${test.junit.output.format}" />
+
+ <batchtest todir="${build.test}" unless="testcase">
+ <fileset dir="${src.test}"
+ includes="**/TestMultipleOutputs.java, **/TestTableLoaderP*.java" excludes="**/${test.exclude}.java" />
+ </batchtest>
+ <batchtest todir="${build.test}" if="testcase">
+ <fileset dir="${src.test}"
+ includes="**/${testcase}.java"/>
+ </batchtest>
+
+
+ </junit>
+ <fail if="tests.failed">Tests failed!</fail>
+ </target>
+
+
+ <!-- ================================================================== -->
<!-- Run nightly tests -->
<!-- ================================================================== -->
<target name="nightly" depends="compile-test, compile" if="test.available">