incubator-hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r687561 - /incubator/hama/nightly/hudsonBuildHamaPatch.sh
Date Thu, 21 Aug 2008 05:09:58 GMT
Author: edwardyoon
Date: Wed Aug 20 22:09:58 2008
New Revision: 687561

URL: http://svn.apache.org/viewvc?rev=687561&view=rev
Log: (empty)

Modified:
    incubator/hama/nightly/hudsonBuildHamaPatch.sh

Modified: incubator/hama/nightly/hudsonBuildHamaPatch.sh
URL: http://svn.apache.org/viewvc/incubator/hama/nightly/hudsonBuildHamaPatch.sh?rev=687561&r1=687560&r2=687561&view=diff
==============================================================================
--- incubator/hama/nightly/hudsonBuildHamaPatch.sh (original)
+++ incubator/hama/nightly/hudsonBuildHamaPatch.sh Wed Aug 20 22:09:58 2008
@@ -54,6 +54,7 @@
 setup () {
   ### Download latest patch file (ignoring .htm and .html)
   $WGET -q -O $PATCH_DIR/jira http://issues.apache.org/jira/browse/$defect
+  chmod -R g+w $PATCH_DIR/jira
   if [[ `$GREP -c 'Patch Available' $PATCH_DIR/jira` == 0 ]] ; then
     echo "$defect is not \"Patch Available\".  Exiting."
     cleanupAndExit 0
@@ -64,7 +65,7 @@
   echo "$defect patch is being downloaded at `date` from"
   echo "$patchURL"
   $WGET -q -O $PATCH_DIR/patch $patchURL
-
+  chmod -R g+w $PATCH_DIR/patch
   JIRA_COMMENT="Here are the results of testing the latest attachment 
 $patchURL
 against trunk revision ${SVN_REVISION}."
@@ -361,7 +362,7 @@
   echo ""
   echo "======================================================================"
   echo "======================================================================"
-  echo "    Running core tests."
+  echo "    Running Hama tests."
   echo "======================================================================"
   echo "======================================================================"
   echo ""
@@ -369,7 +370,7 @@
   ### Kill any rogue build processes from the last attempt
   $PS -auxwww | $GREP HamaPatchProcess | /usr/bin/nawk '{print $2}' | /usr/bin/xargs -t -I
{} /usr/bin/kill -9 {} > /dev/null
 
-  $ANT_HOME/bin/ant -Dversion=${SVN_REVISION}_${defect}_PATCH-${patchNum} -DHamaPatchProcess=
-Dtest.junit.output.format=xml -Dtest.output=yes -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME
create-c++-configure docs tar test-core
+  $ANT_HOME/bin/ant -Dversion=${SVN_REVISION}_${defect}_PATCH-${patchNum} -DHamaPatchProcess=
-Dtest.junit.output.format=xml -Dtest.output=yes tar test
   if [[ $? != 0 ]] ; then
     JIRA_COMMENT="$JIRA_COMMENT
 
@@ -383,34 +384,6 @@
 }
 
 ###############################################################################
-### Run the test-contrib target
-runContribTests () {
-  echo ""
-  echo ""
-  echo "======================================================================"
-  echo "======================================================================"
-  echo "    Running contrib tests."
-  echo "======================================================================"
-  echo "======================================================================"
-  echo ""
-  echo ""
-  ### Kill any rogue build processes from the last attempt
-  $PS -auxwww | $GREP HamaPatchProcess | /usr/bin/nawk '{print $2}' | /usr/bin/xargs -t -I
{} /usr/bin/kill -9 {} > /dev/null
-
-  $ANT_HOME/bin/ant -Dversion=${SVN_REVISION}_${defect}_PATCH-${patchNum} -DHamaPatchProcess=
-Dtest.junit.output.format=xml -Dtest.output=yes test-contrib
-  if [[ $? != 0 ]] ; then
-    JIRA_COMMENT="$JIRA_COMMENT
-
-    contrib tests -1.  The patch failed contrib unit tests."
-    return 1
-  fi
-  JIRA_COMMENT="$JIRA_COMMENT
-
-    contrib tests +1.  The patch passed contrib unit tests."
-  return 0
-}
-
-###############################################################################
 ### Submit a comment to the defect's Jira
 submitJiraComment () {
   local result=$1
@@ -510,10 +483,8 @@
 (( RESULT = RESULT + $? ))
 runCoreTests
 (( RESULT = RESULT + $? ))
-runContribTests
-(( RESULT = RESULT + $? ))
 JIRA_COMMENT_FOOTER="Test results: http://hudson.zones.apache.org/hudson/job/$JOB_NAME/$BUILD_NUMBER/testReport/
 $JIRA_COMMENT_FOOTER"
 
 submitJiraComment $RESULT
-cleanupAndExit $RESULT
+cleanupAndExit $RESULT
\ No newline at end of file



Mime
View raw message