You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by co...@apache.org on 2016/01/14 22:09:15 UTC
[2/3] bigtop git commit: BIGTOP-2232. Add smoke tests for HDFS
BIGTOP-2232. Add smoke tests for HDFS
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/98d3349b
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/98d3349b
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/98d3349b
Branch: refs/heads/master
Commit: 98d3349b3683415e929dbecbe5526122cbc3480e
Parents: f368f26
Author: Konstantin Boudnik <co...@apache.org>
Authored: Tue Jan 12 23:10:48 2016 -0800
Committer: Konstantin Boudnik <co...@apache.org>
Committed: Thu Jan 14 13:08:17 2016 -0800
----------------------------------------------------------------------
bigtop-tests/smoke-tests/build.gradle | 2 +-
bigtop-tests/smoke-tests/hdfs/build.gradle | 80 +++++++++++++++++++++++++
2 files changed, 81 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/bigtop/blob/98d3349b/bigtop-tests/smoke-tests/build.gradle
----------------------------------------------------------------------
diff --git a/bigtop-tests/smoke-tests/build.gradle b/bigtop-tests/smoke-tests/build.gradle
index b9dd63f..74b7b72 100644
--- a/bigtop-tests/smoke-tests/build.gradle
+++ b/bigtop-tests/smoke-tests/build.gradle
@@ -40,9 +40,9 @@ subprojects {
ext.BIGTOP_HOME = rootDir
dependencies {
+ compile group: 'org.apache.bigtop.itest', name: 'itest-common', version: itestVersion, transitive: 'true'
//needed to avoid groovy not on classpath error.
testCompile group: 'org.codehaus.groovy', name: 'groovy', version: groovyVersion
- testCompile group: 'org.apache.bigtop.itest', name: 'itest-common', version: itestVersion, transitive: 'true'
testCompile group: 'org.apache.hadoop', name: 'hadoop-common', version: hadoopVersion, transitive: 'true'
testCompile group: 'org.apache.hadoop', name: 'hadoop-hdfs', version: hadoopVersion, transitive: 'true'
}
http://git-wip-us.apache.org/repos/asf/bigtop/blob/98d3349b/bigtop-tests/smoke-tests/hdfs/build.gradle
----------------------------------------------------------------------
diff --git a/bigtop-tests/smoke-tests/hdfs/build.gradle b/bigtop-tests/smoke-tests/hdfs/build.gradle
new file mode 100644
index 0000000..1d8baa2
--- /dev/null
+++ b/bigtop-tests/smoke-tests/hdfs/build.gradle
@@ -0,0 +1,80 @@
+/**
+ * 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 [
+ "TestBlockRecovery.groovy",
+ "TestDistCpIntra.groovy",
+ "TestFileAppend.groovy",
+ "TestFsck.groovy",
+ "TestHDFSQuota.groovy",
+ /* TODO need to figure out how to unpack the resources
+ "TestCmdTest.groovy",
+ "TestCmdText.groovy",
+ "TestCount.groovy",
+ "TestDFSAdmin.groovy",
+ "TestHDFSBalancer.groovy",
+
+ "TestDFSCLI.java",
+ "TestHDFSCLI.java",
+ "TestTextSnappy.groovy"
+ */
+ ];
+}
+
+def junitVersion = '4.11'
+dependencies {
+ compile group: 'junit', name: 'junit', version: junitVersion, transitive: 'true'
+ compile group: 'org.apache.hadoop', name: 'hadoop-common',
+ version: hadoopVersion, classifier: 'tests', transitive: 'true'
+ compile group: 'org.apache.hadoop', name: 'hadoop-hdfs',
+ version: hadoopVersion, classifier: 'tests', transitive: 'true'
+ compile group: 'org.apache.hadoop', name: 'hadoop-common', version: hadoopVersion, transitive: 'true'
+ compile group: 'org.apache.hadoop', name: 'hadoop-hdfs', version: hadoopVersion, transitive: 'true'
+ if (System.env.HADOOP_CONF_DIR) testRuntime files(System.env.HADOOP_CONF_DIR)
+}
+
+sourceSets {
+ main {
+ java {
+ srcDirs = [
+ "${BIGTOP_HOME}/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/hcfs",
+ "${BIGTOP_HOME}/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/hdfs"
+ ]
+ }
+ }
+ test {
+ groovy {
+ resources {
+ srcDirs = [
+ "${BIGTOP_HOME}/bigtop-tests/test-artifacts/hadoop/src/main/resources",
+ 'conf/',
+ ]
+ }
+ srcDirs = [
+ "${BIGTOP_HOME}/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/hdfs"
+ ]
+ exclude {
+ FileTreeElement elem -> (doExclude(elem.getName()))
+ }
+ }
+ }
+}
+
+test.doFirst {
+ checkEnv(["HADOOP_CONF_DIR"])
+}