aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Boudnik <cos@boudnik.org>2016-01-18 23:41:42 -0800
committerKonstantin Boudnik <cos@apache.org>2016-01-19 13:54:16 -0800
commit815908d433baf9a754c74e26ac2aafe883fe800a (patch)
treeebb8d8ff174761b3978e5813956ec1a93fbfea98
parent6a1851824af5850c37c0d05d29d6a1663bdbef68 (diff)
downloadbigtop-odpi-815908d433baf9a754c74e26ac2aafe883fe800a.tar.gz
BIGTOP-2259. Check for smoke-test projects should be generalized
-rw-r--r--build.gradle11
1 files changed, 6 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle
index 5064cb5c..c74b9a71 100644
--- a/build.gradle
+++ b/build.gradle
@@ -182,13 +182,14 @@ project(':itest-common') {
* This is done to avoid running cluster smoke tests during the normal life-cycle
* of the project development
*/
-def checkSmokeTestProjects = {
- FileTree fTree = fileTree(dir: 'bigtop-tests/smoke-tests', include: '*/build.gradle')
+def checkClusterTestProjects = { property ->
+ def suiteName = property.replaceAll('.', '-')
+ FileTree fTree = fileTree(dir: "bigtop-tests/$suiteName", include: '*/build.gradle')
fTree.each() { smokeProject ->
def parent = smokeProject.getParentFile().name
- project (":bigtop-tests:smoke-tests:$parent") {
+ project (":bigtop-tests:$suiteName:$parent") {
test {
- onlyIf {project.hasProperty('smoke.tests')}
+ onlyIf {project.hasProperty(suiteName)}
}
}
}
@@ -412,7 +413,7 @@ task "bigtop-slaves"(dependsOn: 'gen-gradle-home', type:Exec,
}
project.afterEvaluate {
- checkSmokeTestProjects()
+ checkClusterTestProjects("smoke.tests")
artifactToInstall(dependsOn: [installTopLevel, installCommon, installConf, installiTest])
}