changeset 5548:840c0f5698eb

RT-33795: Need option to disable robot-based visual tests Reviewed-by: mtvo, ckyang
author kcr
date Fri, 25 Oct 2013 14:07:42 -0700
parents d340373b2198
children b7d847549c94
files build.gradle gradle.properties.template
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Fri Oct 25 12:41:10 2013 -0700
+++ b/build.gradle	Fri Oct 25 14:07:42 2013 -0700
@@ -334,6 +334,10 @@
 defineProperty("FULL_TEST", "false")
 ext.IS_FULL_TEST = Boolean.parseBoolean(FULL_TEST);
 
+// Specifies whether to run robot-based visual tests (only used when FULL_TEST is also enabled)
+defineProperty("USE_ROBOT", "true")
+ext.IS_USE_ROBOT = Boolean.parseBoolean(USE_ROBOT);
+
 // Specify the build configuration (Release, Debug, or DebugNative)
 defineProperty("CONF", "Debug")
 ext.IS_DEBUG_JAVA = CONF == "Debug" || CONF == "DebugNative"
@@ -1427,6 +1431,13 @@
     def sdkDir = "${rootProject.buildDir}/${defaultHostTarget}-sdk"
     test {
         enabled = IS_FULL_TEST
+        if (!IS_USE_ROBOT) {
+            // Disable all robot-based visual tests
+            exclude("**/helloworld/*.*");
+            exclude("**/javafx/embed/swing/*.*");
+            exclude("**/javafx/scene/layout/*.*");
+            exclude("**/test3d/*.*");
+        }
         forkEvery = 1
         classpath = files("$sdkDir/rt/lib/ext/jfxrt.jar") + classpath
     }
--- a/gradle.properties.template	Fri Oct 25 12:41:10 2013 -0700
+++ b/gradle.properties.template	Fri Oct 25 14:07:42 2013 -0700
@@ -58,6 +58,11 @@
 
 #FULL_TEST = true
 
+# Specifies whether to enable robot-based visual tests when running a full test.
+# This flag is ignored if FULL_TEST is false.
+
+#USE_ROBOT = false
+
 # Specify the COMPILE_TARGETS when performing cross compiles. A Cross-Compile is
 # when you build for a platform other than the one you are building on. For example,
 # to build for Apple iOS, you would specify ios as one of the COMPILE_TARGETS.