You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2014/03/20 06:58:38 UTC
svn commit: r1579544 - /hbase/trunk/dev-support/test-patch.sh
Author: stack
Date: Thu Mar 20 05:58:38 2014
New Revision: 1579544
URL: http://svn.apache.org/r1579544
Log:
HBASE-10781 Remove hadoop-one-compat module and all references to hadoop1 -- ADDENDUM
Modified:
hbase/trunk/dev-support/test-patch.sh
Modified: hbase/trunk/dev-support/test-patch.sh
URL: http://svn.apache.org/viewvc/hbase/trunk/dev-support/test-patch.sh?rev=1579544&r1=1579543&r2=1579544&view=diff
==============================================================================
--- hbase/trunk/dev-support/test-patch.sh (original)
+++ hbase/trunk/dev-support/test-patch.sh Thu Mar 20 05:58:38 2014
@@ -352,72 +352,6 @@ applyPatch () {
}
###############################################################################
-### Attempt to compile against the hadoop 1.1
-checkHadoop11Compile () {
- echo ""
- echo ""
- echo "======================================================================"
- echo "======================================================================"
- echo " Checking against hadoop 1.1 build"
- echo "======================================================================"
- echo "======================================================================"
- echo ""
- echo ""
-
- patchForHadoop2=`$GREP -c -i 'hadoop.profile=1.1' $PATCH_DIR/patch`
- if [[ $patchForHadoop2 != 0 ]] ; then
- return 0;
- fi
-
- export MAVEN_OPTS="${MAVEN_OPTS}"
- # build core and tests
- $MVN clean test help:active-profiles -X -DskipTests -Dhadoop.profile=1.1 -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunk1.1JavacWarnings.txt 2>&1
- if [[ $? != 0 ]] ; then
- JIRA_COMMENT="$JIRA_COMMENT
-
- {color:red}-1 hadoop1.1{color}. The patch failed to compile against the hadoop 1.1 profile."
- return 1
- fi
- JIRA_COMMENT="$JIRA_COMMENT
-
- {color:green}+1 hadoop1.1{color}. The patch compiles against the hadoop 1.1 profile."
- return 0
-}
-
-###############################################################################
-### Attempt to compile against the hadoop 1.0
-checkHadoop10Compile () {
- echo ""
- echo ""
- echo "======================================================================"
- echo "======================================================================"
- echo " Checking against hadoop 1.0 build"
- echo "======================================================================"
- echo "======================================================================"
- echo ""
- echo ""
-
- export MAVEN_OPTS="${MAVEN_OPTS}"
- # build core and tests
- $MVN clean test help:active-profiles -X -DskipTests -Dhadoop.profile=1.0 -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunk1.0JavacWarnings.txt 2>&1
- if [[ $? != 0 ]] ; then
- ERR=`$GREP -A 5 'Compilation failure' $PATCH_DIR/trunk1.0JavacWarnings.txt`
- JIRA_COMMENT="$JIRA_COMMENT
-
- {color:red}-1 hadoop1.0{color}. The patch failed to compile against the hadoop 1.0 profile.
- Here is snippet of errors:
- {code}$ERR{code}"
-
- return 1
- fi
- JIRA_COMMENT="$JIRA_COMMENT
-
- {color:green}+1 hadoop1.0{color}. The patch compiles against the hadoop 1.0 profile."
- return 0
-}
-
-
-###############################################################################
### Check against known anti-patterns
checkAntiPatterns () {
echo ""
@@ -905,10 +839,6 @@ fi
checkAntiPatterns
(( RESULT = RESULT + $? ))
-checkHadoop10Compile
-(( RESULT = RESULT + $? ))
-checkHadoop11Compile
-(( RESULT = RESULT + $? ))
checkJavadocWarnings
(( RESULT = RESULT + $? ))
checkJavacWarnings