Title: [272407] trunk/Tools
- Revision
- 272407
- Author
- [email protected]
- Date
- 2021-02-05 02:03:29 -0800 (Fri, 05 Feb 2021)
Log Message
[GTK] run-gtk-tests: Support running individual tests for GTest test suites
https://bugs.webkit.org/show_bug.cgi?id=221050
Reviewed by Adrian Perez de Castro.
run-gtk-tests accepts any number of optional `-p` arguments to run
only certain tests. Unfortunately, this feature is only currently
implemented for glib tests suites.
This patch adds support for this feature with gtest suites as well.
* glib/api_test_runner.py:
(TestRunner._run_google_test_suite):
(TestRunner._run_test):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (272406 => 272407)
--- trunk/Tools/ChangeLog 2021-02-05 08:45:38 UTC (rev 272406)
+++ trunk/Tools/ChangeLog 2021-02-05 10:03:29 UTC (rev 272407)
@@ -1,3 +1,20 @@
+2021-02-05 Alicia Boya GarcĂa <[email protected]>
+
+ [GTK] run-gtk-tests: Support running individual tests for GTest test suites
+ https://bugs.webkit.org/show_bug.cgi?id=221050
+
+ Reviewed by Adrian Perez de Castro.
+
+ run-gtk-tests accepts any number of optional `-p` arguments to run
+ only certain tests. Unfortunately, this feature is only currently
+ implemented for glib tests suites.
+
+ This patch adds support for this feature with gtest suites as well.
+
+ * glib/api_test_runner.py:
+ (TestRunner._run_google_test_suite):
+ (TestRunner._run_test):
+
2021-02-04 Aakash Jain <[email protected]>
[build.webkit.org] Update dashboard links for layout test results
Modified: trunk/Tools/glib/api_test_runner.py (272406 => 272407)
--- trunk/Tools/glib/api_test_runner.py 2021-02-05 08:45:38 UTC (rev 272406)
+++ trunk/Tools/glib/api_test_runner.py 2021-02-05 10:03:29 UTC (rev 272407)
@@ -250,10 +250,11 @@
return {subtest: "PASS"}
- def _run_google_test_suite(self, test_program, skipped_test_cases):
+ def _run_google_test_suite(self, test_program, subtests, skipped_test_cases):
result = {}
for subtest in self._get_tests_from_google_test_suite(test_program, skipped_test_cases):
- result.update(self._run_google_test(test_program, subtest))
+ if subtest in subtests or not subtests:
+ result.update(self._run_google_test(test_program, subtest))
return result
def is_glib_test(self, test_program):
@@ -270,7 +271,7 @@
return self._run_test_glib(test_program, subtests, skipped_test_cases)
if self.is_google_test(test_program):
- return self._run_google_test_suite(test_program, skipped_test_cases)
+ return self._run_google_test_suite(test_program, subtests, skipped_test_cases)
# FIXME: support skipping Qt subtests
if self.is_qt_test(test_program):
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes