Changeset 57499 in webkit
- Timestamp:
- Apr 12, 2010 9:00:30 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r57497 r57499 1 2010-04-12 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Adam Barth. 4 5 new-run-webkit-tests should only build java support files on Mac 6 https://bugs.webkit.org/show_bug.cgi?id=37482 7 8 Only the mac needs java support files, so I pushed _build_java 9 down into the Mac port using a new hook "_check_port_build". 10 In the process I noticed a bunch of code which could be shared 11 between all ports and thus got rid of _tests_for_disabled_features 12 and version() copy/paste between all webkit ports. 13 I also made check_build only bother to check for ImageDiff if we're 14 using pixel tests. 15 16 * Scripts/webkitpy/layout_tests/port/gtk.py: 17 * Scripts/webkitpy/layout_tests/port/mac.py: 18 * Scripts/webkitpy/layout_tests/port/qt.py: 19 * Scripts/webkitpy/layout_tests/port/webkit.py: 20 * Scripts/webkitpy/layout_tests/port/win.py: 21 1 22 2010-04-12 Dumitru Daniliuc <dumi@chromium.org> 2 23 -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/gtk.py
r57483 r57499 46 46 WebKitPort.__init__(self, port_name, options) 47 47 48 def version(self):49 return ''50 51 48 def _tests_for_other_platforms(self): 52 49 # FIXME: This list could be dynamic based on platform name and … … 59 56 "platform/mac", 60 57 ] 61 62 # FIXME: Validate this list.63 def _tests_for_disabled_features(self):64 # FIXME: This should use the feature detection from65 # webkitperl/features.pm to match run-webkit-tests.66 # For now we hard-code a list of features known to be disabled on67 # the Win platform.68 disabled_feature_tests = [69 "fast/xhtmlmp",70 "http/tests/wml",71 "mathml",72 "wml",73 ]74 # FIXME: webarchive tests expect to read-write from75 # -expected.webarchive files instead of .txt files.76 # This script doesn't know how to do that yet, so pretend they're77 # just "disabled".78 webarchive_tests = [79 "webarchive",80 "svg/webarchive",81 "http/tests/webarchive",82 "svg/custom/image-with-prefix-in-webarchive.svg",83 ]84 return disabled_feature_tests + webarchive_tests85 58 86 59 def _path_to_apache_config_file(self): -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/mac.py
r57466 r57499 107 107 return '' 108 108 109 def _build_java_test_support(self): 110 java_tests_path = os.path.join(self.layout_tests_dir(), "java") 111 build_java = ["/usr/bin/make", "-C", java_tests_path] 112 if self._executive.run_command(build_java, return_exit_code=True): 113 _log.error("Failed to build Java support files: %s" % build_java) 114 return False 115 return True 116 117 def _check_port_build(self): 118 return self._build_java_test_support() 119 109 120 def _tests_for_other_platforms(self): 110 121 # The original run-webkit-tests builds up a "whitelist" of tests to … … 120 131 "platform/win", 121 132 ] 122 123 def _tests_for_disabled_features(self):124 # FIXME: This should use the feature detection from125 # webkitperl/features.pm to match run-webkit-tests.126 # For now we hard-code a list of features known to be disabled on127 # the Mac platform.128 disabled_feature_tests = [129 "fast/xhtmlmp",130 "http/tests/wml",131 "mathml",132 "wml",133 ]134 # FIXME: webarchive tests expect to read-write from135 # -expected.webarchive files instead of .txt files.136 # This script doesn't know how to do that yet, so pretend they're137 # just "disabled".138 webarchive_tests = [139 "webarchive",140 "svg/webarchive",141 "http/tests/webarchive",142 "svg/custom/image-with-prefix-in-webarchive.svg",143 ]144 return disabled_feature_tests + webarchive_tests145 133 146 134 # FIXME: This doesn't have anything to do with WebKit. -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/qt.py
r57491 r57499 46 46 WebKitPort.__init__(self, port_name, options) 47 47 48 def version(self):49 return ''50 51 48 def _tests_for_other_platforms(self): 52 49 # FIXME: This list could be dynamic based on platform name and … … 59 56 "platform/mac", 60 57 ] 61 62 # FIXME: Validate this list.63 def _tests_for_disabled_features(self):64 # FIXME: This should use the feature detection from65 # webkitperl/features.pm to match run-webkit-tests.66 # For now we hard-code a list of features known to be disabled on67 # the Qt platform.68 disabled_feature_tests = [69 "fast/xhtmlmp",70 "http/tests/wml",71 "mathml",72 "wml",73 ]74 # FIXME: webarchive tests expect to read-write from75 # -expected.webarchive files instead of .txt files.76 # This script doesn't know how to do that yet, so pretend they're77 # just "disabled".78 webarchive_tests = [79 "webarchive",80 "svg/webarchive",81 "http/tests/webarchive",82 "svg/custom/image-with-prefix-in-webarchive.svg",83 ]84 return disabled_feature_tests + webarchive_tests85 58 86 59 def _path_to_apache_config_file(self): -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/webkit.py
r57446 r57499 72 72 'test_expectations.txt') 73 73 74 # Only needed by ports which maintain versioned test expectations (like mac-tiger vs. mac-leopard) 75 def version(self): 76 return '' 77 74 78 def _build_driver(self): 75 79 return not self._executive.run_command([ … … 77 81 self.flag_from_configuration(self._options.configuration), 78 82 ], return_exit_code=True) 79 80 def _build_java(self):81 java_tests_path = os.path.join(self.layout_tests_dir(), "java")82 build_java = ["/usr/bin/make", "-C", java_tests_path]83 if self._executive.run_command(build_java, return_exit_code=True):84 _log.error("Failed to build Java support files: %s" % build_java)85 return False86 return True87 83 88 84 def _check_driver(self): … … 96 92 if not self._build_driver(): 97 93 return False 98 if not self.check_image_diff():99 return False100 94 if not self._check_driver(): 101 95 return False 102 if not self._build_java(): 96 if self._options.pixel_tests: 97 if not self.check_image_diff(): 98 return False 99 if not self._check_port_build(): 103 100 return False 104 101 return True 102 103 def _check_port_build(self): 104 # Ports can override this method to do additional checks. 105 pass 105 106 106 107 def check_image_diff(self, override_step=None, logging=True): … … 210 211 211 212 def _tests_for_disabled_features(self): 212 raise NotImplementedError('WebKitPort._tests_for_disabled_features')213 213 # FIXME: This should use the feature detection from 214 214 # webkitperl/features.pm to match run-webkit-tests. -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/win.py
r57444 r57499 46 46 WebKitPort.__init__(self, port_name, options) 47 47 48 def version(self):49 return ''50 51 48 def _tests_for_other_platforms(self): 52 49 # FIXME: This list could be dynamic based on platform name and … … 59 56 "platform/mac", 60 57 ] 61 62 # FIXME: Validate this list.63 def _tests_for_disabled_features(self):64 # FIXME: This should use the feature detection from65 # webkitperl/features.pm to match run-webkit-tests.66 # For now we hard-code a list of features known to be disabled on67 # the Win platform.68 disabled_feature_tests = [69 "fast/xhtmlmp",70 "http/tests/wml",71 "mathml",72 "wml",73 ]74 # FIXME: webarchive tests expect to read-write from75 # -expected.webarchive files instead of .txt files.76 # This script doesn't know how to do that yet, so pretend they're77 # just "disabled".78 webarchive_tests = [79 "webarchive",80 "svg/webarchive",81 "http/tests/webarchive",82 "svg/custom/image-with-prefix-in-webarchive.svg",83 ]84 return disabled_feature_tests + webarchive_tests85 58 86 59 def _path_to_apache_config_file(self):
Note: See TracChangeset
for help on using the changeset viewer.