From ea9e5b7baae34c7ba660681d1e5aceb9c1047e6f Mon Sep 17 00:00:00 2001 From: Binglin Chang Date: Thu, 24 Jul 2014 11:44:09 +0000 Subject: [PATCH] MAPREDUCE-5991. native-task should not run unit tests if native profile is not enabled. Contributed by Binglin Chang. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/MR-2841@1613072 13f79535-47bb-0310-9956-ffa450edef68 --- .../hadoop-mapreduce-client-common/pom.xml | 11 ++++++ .../pom.xml | 35 +++++++++++++++---- hadoop-project/pom.xml | 6 ++++ 3 files changed, 45 insertions(+), 7 deletions(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/pom.xml b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/pom.xml index 7ef7d3b038..48db5c87cb 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/pom.xml +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/pom.xml @@ -84,6 +84,17 @@ + + maven-jar-plugin + + + + test-jar + + test-compile + + + diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/pom.xml b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/pom.xml index 40b6520a77..2cb483e1db 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/pom.xml +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/pom.xml @@ -63,6 +63,12 @@ test-jar test + + org.apache.hadoop + hadoop-mapreduce-client-common + test-jar + test + @@ -82,14 +88,7 @@ **/buffer/Test*.java **/handlers/Test*.java **/serde/Test*.java - **/combinertest/*Test.java - **/compresstest/*Test.java - **/nonsorttest/*Test.java - **/kvtest/*Test.java - - ${basedir}/../hadoop-mapreduce-client-common/target/classes - @@ -184,6 +183,28 @@ + + org.apache.maven.plugins + maven-surefire-plugin + + + + listener + org.apache.hadoop.test.TimedOutTestsListener + + + + **/TestTaskContext.java + **/buffer/Test*.java + **/handlers/Test*.java + **/serde/Test*.java + **/combinertest/*Test.java + **/compresstest/*Test.java + **/nonsorttest/*Test.java + **/kvtest/*Test.java + + + diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index 2dc83dd4f9..947be867b5 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -134,6 +134,12 @@ hadoop-mapreduce-client-common ${project.version} + + org.apache.hadoop + hadoop-mapreduce-client-common + ${project.version} + test-jar + org.apache.hadoop hadoop-yarn-api