Repository: bigtop
Updated Branches:
  refs/heads/master c5b2a8807 -> aa8f6ba33


BIGTOP-2371. Add Oozie to gradle smoke tests


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/aa8f6ba3
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/aa8f6ba3
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/aa8f6ba3

Branch: refs/heads/master
Commit: aa8f6ba33b3d7100f7f9ca6a5da874bb545f7667
Parents: c5b2a88
Author: Dasha Boudnik <[email protected]>
Authored: Mon Apr 4 16:41:43 2016 -0700
Committer: Dasha Boudnik <[email protected]>
Committed: Mon Apr 4 16:41:43 2016 -0700

----------------------------------------------------------------------
 bigtop-tests/smoke-tests/README             |  1 +
 bigtop-tests/smoke-tests/oozie/build.gradle | 46 ++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/aa8f6ba3/bigtop-tests/smoke-tests/README
----------------------------------------------------------------------
diff --git a/bigtop-tests/smoke-tests/README b/bigtop-tests/smoke-tests/README
index 67ed7ea..54d060d 100644
--- a/bigtop-tests/smoke-tests/README
+++ b/bigtop-tests/smoke-tests/README
@@ -28,6 +28,7 @@ export MAHOUT_HOME="/usr/lib/mahout"
 export KITE_HOME="/usr/lib/kite"
 export SPARK_HOME="/usr/lib/spark"
 export TAJO_HOME="/usr/lib/tajo"
+export OOZIE_TAR_HOME="/usr/lib/oozie/doc"
 ```
 
 Then, simply invoke the tests you want to run, as described below.

http://git-wip-us.apache.org/repos/asf/bigtop/blob/aa8f6ba3/bigtop-tests/smoke-tests/oozie/build.gradle
----------------------------------------------------------------------
diff --git a/bigtop-tests/smoke-tests/oozie/build.gradle 
b/bigtop-tests/smoke-tests/oozie/build.gradle
new file mode 100644
index 0000000..9d9f8f0
--- /dev/null
+++ b/bigtop-tests/smoke-tests/oozie/build.gradle
@@ -0,0 +1,46 @@
+/**
+ * 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
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * 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.
+ */
+def tests_to_include() {
+  return [
+      "TestOozieSmoke.groovy"
+  ];
+}
+
+dependencies {
+  if (System.env.HADOOP_CONF_DIR) testRuntime files(System.env.HADOOP_CONF_DIR)
+}
+
+sourceSets {
+  test {
+    groovy {
+      srcDirs = [
+        
"${BIGTOP_HOME}/bigtop-tests/test-artifacts/oozie/src/main/groovy/org/apache/bigtop/itest/ooziesmoke"
+      ]
+      exclude {
+        FileTreeElement elem -> (doExclude(elem.getName()))
+      }
+    }
+  }
+}
+
+test.doFirst {
+  checkEnv(["HADOOP_CONF_DIR", "OOZIE_URL", "OOZIE_TAR_HOME"])
+  // OOZIE_TAR_HOME should point to the directory where oozie-examples.tar.gz 
is located
+  // Usually, it could be found in $HADOOP_HOME/share/doc/oozie
+  systemProperty "org.apache.bigtop.itest.oozie_tar_home", 
System.getenv('OOZIE_TAR_HOME')
+}

Reply via email to