Changeset 246189 in webkit
- Timestamp:
- Jun 6, 2019 10:47:49 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r246173 r246189 1 2019-06-06 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 REGRESSION(r244857): [GTK][WPE] Many tests are no longer run in the bots after r244857 4 https://bugs.webkit.org/show_bug.cgi?id=198607 5 6 Reviewed by Michael Catanzaro. 7 8 Since r244857 several test executables are compiled in the base tests directory instead of using their own sub 9 directory. Our scripts to run the tests rely on the tests location to decide whether to run them or not, or 10 determine the type of the tests. 11 12 * Scripts/run-gtk-tests: 13 (GtkTestRunner): Rename TEST_DIRS as TEST_TARGETS and use the executable names for tests not in a subdirectory. 14 (GtkTestRunner._setup_testing_environment): Fix TestWebKitAccessibility directory name. 15 (GtkTestRunner.is_glib_test): Use the test name for the ones not using a subdirectory. 16 (GtkTestRunner.is_google_test): Ditto. 17 * Scripts/run-wpe-tests: 18 (WPETestRunner): Rename TEST_DIRS as TEST_TARGETS and use the executable names for tests not in a subdirectory. 19 (WPETestRunner.is_glib_test): Use the test name for the ones not using a subdirectory. 20 (WPETestRunner.is_google_test): Ditto. 21 * glib/api_test_runner.py: 22 (TestRunner): Rename TEST_DIRS as TEST_TARGETS. 23 (TestRunner._get_tests): Handle test targets which can now contain directories and executables. 24 1 25 2019-06-06 Keith Rollin <krollin@apple.com> 2 26 -
trunk/Tools/Scripts/run-gtk-tests
r240141 r246189 35 35 36 36 class GtkTestRunner(TestRunner): 37 TestRunner.TEST_ DIRS = [ "WebKit2Gtk", "WebKit", "JavaScriptCore", "WTF", "WebCore" ]37 TestRunner.TEST_TARGETS = [ "WebKit2Gtk", "TestWebKit", "TestJSC", "TestWTF", "TestWebCore" ] 38 38 39 39 def __init__(self, options, tests=[]): … … 111 111 if not self._start_accessibility_daemons(): 112 112 print "Could not start accessibility bus, so disabling TestWebKitAccessibility" 113 self._disabled_tests.append("WebKit2 APITests/TestWebKitAccessibility")113 self._disabled_tests.append("WebKit2Gtk/TestWebKitAccessibility") 114 114 115 115 def _tear_down_testing_environment(self): … … 121 121 122 122 def is_glib_test(self, test_program): 123 return os.path.basename(os.path.dirname(test_program)) in ["WebKit2Gtk" , "JavaScriptCore"]123 return os.path.basename(os.path.dirname(test_program)) in ["WebKit2Gtk"] or os.path.basename(test_program) in ["TestJSC"] 124 124 125 125 def is_google_test(self, test_program): 126 return os.path.basename( os.path.dirname(test_program)) in ["WebKit", "WTF", "WebCore", "WebCoreGtk"]126 return os.path.basename(test_program) in ["TestWebKit", "TestWTF", "TestWebCore"] 127 127 128 128 def is_qt_test(self, test_program): -
trunk/Tools/Scripts/run-wpe-tests
r240141 r246189 33 33 34 34 class WPETestRunner(TestRunner): 35 TestRunner.TEST_ DIRS = [ "WPE", "WPEQt", "WebKit", "JavaScriptCore", "WTF", "WebCore" ]35 TestRunner.TEST_TARGETS = [ "WPE", "WPEQt", "TestWebKit", "TestJSC", "TestWTF", "TestWebCore" ] 36 36 37 37 def __init__(self, options, tests=[]): … … 39 39 40 40 def is_glib_test(self, test_program): 41 return os.path.basename(os.path.dirname(test_program)) in ["WPE" , "JavaScriptCore"]41 return os.path.basename(os.path.dirname(test_program)) in ["WPE"] or os.path.basename(test_program) in ["TestJSC"] 42 42 43 43 def is_google_test(self, test_program): 44 return os.path.basename( os.path.dirname(test_program)) in ["WebKit", "WTF", "WebCore"]44 return os.path.basename(test_program) in ["TestWebKit", "TestWTF", "TestWebCore"] 45 45 46 46 def is_qt_test(self, test_program): -
trunk/Tools/glib/api_test_runner.py
r240433 r246189 41 41 42 42 class TestRunner(object): 43 TEST_ DIRS = []43 TEST_TARGETS = [] 44 44 45 45 def __init__(self, port, options, tests=[]): … … 90 90 91 91 tests = [] 92 for test_dir in self.TEST_DIRS: 93 absolute_test_dir = os.path.join(self._test_programs_base_dir(), test_dir) 94 tests.extend(self._get_tests_from_dir(absolute_test_dir)) 92 for test_target in self.TEST_TARGETS: 93 absolute_test_target = os.path.join(self._test_programs_base_dir(), test_target) 94 if test_target.lower().startswith("test") and os.path.isfile(absolute_test_target) and os.access(absolute_test_target, os.X_OK): 95 tests.append(absolute_test_target) 96 else: 97 tests.extend(self._get_tests_from_dir(absolute_test_target)) 95 98 return tests 96 99
Note: See TracChangeset
for help on using the changeset viewer.