You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@reef.apache.org by bg...@apache.org on 2014/12/24 19:35:26 UTC

incubator-reef git commit: [REEF-79] Add a script to run tests on YARN and edit pom to include test code in the jar-with-dependencies

Repository: incubator-reef
Updated Branches:
  refs/heads/master 19019dc1a -> 2ed045e2e


[REEF-79] Add a script to run tests on YARN and edit pom to include test code
  in the jar-with-dependencies

JIRA:
  [REEF-79] https://issues.apache.org/jira/browse/REEF-79

Pull Request:
  Closes #38

Author:
  John Yang johnyangk@gmail.com


Project: http://git-wip-us.apache.org/repos/asf/incubator-reef/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-reef/commit/2ed045e2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-reef/tree/2ed045e2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-reef/diff/2ed045e2

Branch: refs/heads/master
Commit: 2ed045e2e5d8402ef099e499d56cb575e46af12c
Parents: 19019dc
Author: John Yang <jo...@gmail.com>
Authored: Tue Dec 23 13:25:16 2014 +0900
Committer: Byung-Gon Chun <bg...@apache.org>
Committed: Thu Dec 25 03:30:21 2014 +0900

----------------------------------------------------------------------
 bin/runyarntests.sh | 27 +++++++++++++++++++++++++++
 reef-tests/pom.xml  | 11 +++++++++++
 2 files changed, 38 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/2ed045e2/bin/runyarntests.sh
----------------------------------------------------------------------
diff --git a/bin/runyarntests.sh b/bin/runyarntests.sh
new file mode 100755
index 0000000..3df6ea7
--- /dev/null
+++ b/bin/runyarntests.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+export REEF_TEST_YARN=true
+DEPENDENCY_JAR=`echo $REEF_HOME/reef-tests/target/reef-tests-*-test-jar-with-dependencies.jar`
+CLASSPATH=`yarn classpath`
+
+CMD="java -cp $YARN_CONF_DIR:$DEPENDENCY_JAR:$CLASSPATH org.junit.runner.JUnitCore org.apache.reef.tests.AllTestsSuite $*" 
+echo $CMD
+$CMD

http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/2ed045e2/reef-tests/pom.xml
----------------------------------------------------------------------
diff --git a/reef-tests/pom.xml b/reef-tests/pom.xml
index 7f95a40..2d98fed 100644
--- a/reef-tests/pom.xml
+++ b/reef-tests/pom.xml
@@ -74,6 +74,17 @@ under the License.
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>test-jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-assembly-plugin</artifactId>
                 <configuration>
                     <descriptors>