changeset 10902:f7e879441509

8201176: gradle :web:test should print a warning if COMPILE_WEBKIT is false Reviewed-by: kcr
author mbilla
date Fri, 13 Apr 2018 20:16:45 +0530
parents b942977b44eb
children 345376202d2b
files build.gradle
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Fri Apr 13 07:34:46 2018 -0700
+++ b/build.gradle	Fri Apr 13 20:16:45 2018 +0530
@@ -3545,6 +3545,19 @@
     compileJava.dependsOn(copyWrappers);
 
     test {
+        doFirst {
+            if (!IS_COMPILE_WEBKIT) {
+                println "*****************************************************"
+                println "WARNING: running web tests without building webkit."
+                println "The webkit native library will be copied from the JDK,"
+                println "which might lead to failures in some web tests."
+                println "To avoid these failures, you should either build"
+                println "webkit locally, copy the native webkit library from a"
+                println "recent build, or skip execution of web test cases with"
+                println "'-x :web:test'"
+                println "*****************************************************"
+            }
+        }
         // Run web tests in headless mode
         systemProperty 'glass.platform', 'Monocle'
         systemProperty 'monocle.platform', 'Headless'