aboutsummaryrefslogtreecommitdiff
path: root/settings.gradle
diff options
context:
space:
mode:
authorKonstantin Boudnik <cos@apache.org>2016-01-08 21:29:46 -0800
committerKonstantin Boudnik <cos@apache.org>2016-01-12 15:44:20 -0800
commit5d63481d533e79f89f2be56dede58c7c2bb29fc5 (patch)
treef89a61d16a6d7bc68b81bdd4f40f77a7cc448d3f /settings.gradle
parent6c9829e8bc3f8971b146c10f6d9df589db43c52a (diff)
downloadbigtop-odpi-5d63481d533e79f89f2be56dede58c7c2bb29fc5.tar.gz
BIGTOP-2227. smoke-tests should be a part of the top-level project, not separated
Diffstat (limited to 'settings.gradle')
-rw-r--r--settings.gradle14
1 files changed, 13 insertions, 1 deletions
diff --git a/settings.gradle b/settings.gradle
index 30e69241..ac071f1b 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -18,5 +18,17 @@
rootProject.name = 'bigtop'
include 'bigtop-test-framework', 'bigtop-tests:smoke-tests'
-
project(":bigtop-test-framework").name = 'itest-common'
+
+/**
+ * The following code will does include all subprojects of smoke-tests
+ * so they are lined-up properly in the structure of the Bigtop project.
+ * The inclusion is done dynamically, so when new smoke test projects
+ * there's no extra effort to get it running.
+ */
+FileTree fTree = fileTree(dir: 'bigtop-tests/smoke-tests', include: '*/build.gradle')
+fTree.each() { buildFile ->
+ def parent = buildFile.getParentFile().name
+ include("bigtop-tests:smoke-tests:$parent")
+}
+