Changeset 246189 in webkit


Ignore:
Timestamp:
Jun 6, 2019 10:47:49 PM (5 years ago)
Author:
Carlos Garcia Campos
Message:

REGRESSION(r244857): [GTK][WPE] Many tests are no longer run in the bots after r244857
https://bugs.webkit.org/show_bug.cgi?id=198607

Reviewed by Michael Catanzaro.

Since r244857 several test executables are compiled in the base tests directory instead of using their own sub
directory. Our scripts to run the tests rely on the tests location to decide whether to run them or not, or
determine the type of the tests.

  • Scripts/run-gtk-tests:

(GtkTestRunner): Rename TEST_DIRS as TEST_TARGETS and use the executable names for tests not in a subdirectory.
(GtkTestRunner._setup_testing_environment): Fix TestWebKitAccessibility directory name.
(GtkTestRunner.is_glib_test): Use the test name for the ones not using a subdirectory.
(GtkTestRunner.is_google_test): Ditto.

  • Scripts/run-wpe-tests:

(WPETestRunner): Rename TEST_DIRS as TEST_TARGETS and use the executable names for tests not in a subdirectory.
(WPETestRunner.is_glib_test): Use the test name for the ones not using a subdirectory.
(WPETestRunner.is_google_test): Ditto.

  • glib/api_test_runner.py:

(TestRunner): Rename TEST_DIRS as TEST_TARGETS.
(TestRunner._get_tests): Handle test targets which can now contain directories and executables.

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r246173 r246189  
     12019-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
    1252019-06-06  Keith Rollin  <krollin@apple.com>
    226
  • trunk/Tools/Scripts/run-gtk-tests

    r240141 r246189  
    3535
    3636class GtkTestRunner(TestRunner):
    37     TestRunner.TEST_DIRS = [ "WebKit2Gtk", "WebKit", "JavaScriptCore", "WTF", "WebCore" ]
     37    TestRunner.TEST_TARGETS = [ "WebKit2Gtk", "TestWebKit", "TestJSC", "TestWTF", "TestWebCore" ]
    3838
    3939    def __init__(self, options, tests=[]):
     
    111111        if not self._start_accessibility_daemons():
    112112            print "Could not start accessibility bus, so disabling TestWebKitAccessibility"
    113             self._disabled_tests.append("WebKit2APITests/TestWebKitAccessibility")
     113            self._disabled_tests.append("WebKit2Gtk/TestWebKitAccessibility")
    114114
    115115    def _tear_down_testing_environment(self):
     
    121121
    122122    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"]
    124124
    125125    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"]
    127127
    128128    def is_qt_test(self, test_program):
  • trunk/Tools/Scripts/run-wpe-tests

    r240141 r246189  
    3333
    3434class WPETestRunner(TestRunner):
    35     TestRunner.TEST_DIRS = [ "WPE", "WPEQt", "WebKit", "JavaScriptCore", "WTF", "WebCore" ]
     35    TestRunner.TEST_TARGETS = [ "WPE", "WPEQt", "TestWebKit", "TestJSC", "TestWTF", "TestWebCore" ]
    3636
    3737    def __init__(self, options, tests=[]):
     
    3939
    4040    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"]
    4242
    4343    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"]
    4545
    4646    def is_qt_test(self, test_program):
  • trunk/Tools/glib/api_test_runner.py

    r240433 r246189  
    4141
    4242class TestRunner(object):
    43     TEST_DIRS = []
     43    TEST_TARGETS = []
    4444
    4545    def __init__(self, port, options, tests=[]):
     
    9090
    9191        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))
    9598        return tests
    9699
Note: See TracChangeset for help on using the changeset viewer.