From 4d7d9603e9d266afeb41dfdd256cfd3abcf82856 Mon Sep 17 00:00:00 2001 From: Anna Malova Date: Wed, 6 Jan 2021 14:42:09 +0000 Subject: [PATCH] Add TEST_MAPPING to run WebView CTS/GTS tests in presubmit. Bug: 173406791 Test: cd frameworks/base/core/java/android/webkit && atest --test-mapping Change-Id: Ic75336a7067faf2c9ec10c8b7089eee48b2ec89d --- core/java/android/webkit/TEST_MAPPING | 36 +++++++++++++++++++++++++++ native/webview/TEST_MAPPING | 36 +++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 core/java/android/webkit/TEST_MAPPING create mode 100644 native/webview/TEST_MAPPING diff --git a/core/java/android/webkit/TEST_MAPPING b/core/java/android/webkit/TEST_MAPPING new file mode 100644 index 0000000000000..bd25200ffc383 --- /dev/null +++ b/core/java/android/webkit/TEST_MAPPING @@ -0,0 +1,36 @@ +{ + "presubmit": [ + { + "name": "CtsWebkitTestCases", + "options": [ + { + "exclude-annotation": "androidx.test.filters.FlakyTest" + } + ] + }, + { + "name": "CtsHostsideWebViewTests", + "options": [ + { + "exclude-annotation": "androidx.test.filters.FlakyTest" + } + ] + }, + { + "name": "GtsWebViewTestCases", + "options": [ + { + "exclude-annotation": "android.test.FlakyTest" + } + ] + }, + { + "name": "GtsWebViewHostTestCases", + "options": [ + { + "exclude-annotation": "android.test.FlakyTest" + } + ] + } + ] +} diff --git a/native/webview/TEST_MAPPING b/native/webview/TEST_MAPPING new file mode 100644 index 0000000000000..bd25200ffc383 --- /dev/null +++ b/native/webview/TEST_MAPPING @@ -0,0 +1,36 @@ +{ + "presubmit": [ + { + "name": "CtsWebkitTestCases", + "options": [ + { + "exclude-annotation": "androidx.test.filters.FlakyTest" + } + ] + }, + { + "name": "CtsHostsideWebViewTests", + "options": [ + { + "exclude-annotation": "androidx.test.filters.FlakyTest" + } + ] + }, + { + "name": "GtsWebViewTestCases", + "options": [ + { + "exclude-annotation": "android.test.FlakyTest" + } + ] + }, + { + "name": "GtsWebViewHostTestCases", + "options": [ + { + "exclude-annotation": "android.test.FlakyTest" + } + ] + } + ] +}