Author: lewismc
Date: Thu Sep 29 11:41:08 2011
New Revision: 1177270

URL: http://svn.apache.org/viewvc?rev=1177270&view=rev
Log:
commit to address NUTCH-672 and update to changes.txt

Modified:
    nutch/trunk/CHANGES.txt
    nutch/trunk/build.xml
    nutch/trunk/src/bin/nutch

Modified: nutch/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/nutch/trunk/CHANGES.txt?rev=1177270&r1=1177269&r2=1177270&view=diff
==============================================================================
--- nutch/trunk/CHANGES.txt (original)
+++ nutch/trunk/CHANGES.txt Thu Sep 29 11:41:08 2011
@@ -2,6 +2,8 @@ Nutch Change Log
 
 Release 1.4 - Current development
 
+* NUTCH-672 allow unit tests to be run from bin/nutch (Todd Lipton via lewismc)
+
 * NUTCH-937 Put plugins in classes/plugins in job file (Claudio Martella, 
Ferdy Galema, jnioche)
 
 * NUTCH-623 Change plugin source directory "languageidentifier" to 
"language-identifier"

Modified: nutch/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/nutch/trunk/build.xml?rev=1177270&r1=1177269&r2=1177270&view=diff
==============================================================================
--- nutch/trunk/build.xml (original)
+++ nutch/trunk/build.xml Thu Sep 29 11:41:08 2011
@@ -299,6 +299,9 @@
     <copy todir="${runtime.local}/plugins">
       <fileset dir="${build.dir}/plugins"/>
     </copy>
+    <copy todir="${runtime.local}/test">
+      <fileset dir="${build.dir}/test"/>
+    </copy>
   </target>
 
   <!-- ================================================================== -->

Modified: nutch/trunk/src/bin/nutch
URL: 
http://svn.apache.org/viewvc/nutch/trunk/src/bin/nutch?rev=1177270&r1=1177269&r2=1177270&view=diff
==============================================================================
--- nutch/trunk/src/bin/nutch (original)
+++ nutch/trunk/src/bin/nutch Thu Sep 29 11:41:08 2011
@@ -72,6 +72,7 @@ if [ $# = 0 ]; then
   echo "  scoreupdater      updates the crawldb with linkrank scores"
   echo "  nodedumper        dumps the web graph's node scores"
   echo "  plugin            load a plugin and run one of its classes main()"
+  echo "  junit             runs the given JUnit test"
   echo " or"
   echo "  CLASSNAME         run the class named CLASSNAME"
   echo "Most commands print help when invoked w/o parameters."
@@ -243,6 +244,9 @@ elif [ "$COMMAND" = "nodedumper" ] ; the
   CLASS=org.apache.nutch.scoring.webgraph.NodeDumper
 elif [ "$COMMAND" = "plugin" ] ; then
   CLASS=org.apache.nutch.plugin.PluginRepository
+elif [ "$COMMAND" = "junit" ] ; then
+  CLASSPATH=$CLASSPATH:test/classes/
+  CLASS=junit.textui.TestRunner
 else
   CLASS=$COMMAND
 fi


Reply via email to