blob: 64509eeabdc3a09124a251e5d35065f36198f95d [file] [log] [blame]
# Copyright 2017-2020 The Cobalt Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Starboard Android x86 Cobalt configuration."""
from starboard.android.shared.cobalt import configuration
from starboard.tools.testing import test_filter
class CobaltAndroidX86Configuration(configuration.CobaltAndroidConfiguration):
"""Starboard Android x86 Cobalt configuration."""
def GetTestFilters(self):
filters = super(CobaltAndroidX86Configuration, self).GetTestFilters()
for target, tests in self.__FILTERED_TESTS.iteritems():
filters.extend(test_filter.TestFilter(target, test) for test in tests)
return filters
# A map of failing or crashing tests per target
__FILTERED_TESTS = { # pylint: disable=invalid-name
'graphics_system_test': [
test_filter.FILTER_ALL
],
'layout_tests': [ # Old Android versions don't have matching fonts
'CSS3FontsLayoutTests/Layout.Test'
'/5_2_use_first_available_listed_font_family',
'CSS3FontsLayoutTests/Layout.Test'
'/5_2_use_specified_font_family_if_available',
'CSS3FontsLayoutTests/Layout.Test'
'/5_2_use_system_fallback_if_no_matching_family_is_found*',
'CSS3FontsLayoutTests/Layout.Test'
'/synthetic_bolding_should_not_occur_on_bold_font',
'CSS3FontsLayoutTests/Layout.Test'
'/synthetic_bolding_should_occur_on_non_bold_font',
],
'net_unittests': [ # Net tests are very unstable on Android L
test_filter.FILTER_ALL
],
'renderer_test': [
'PixelTest.YUV422UYVYImageScaledUpSupport',
'PixelTest.YUV422UYVYImageScaledAndTranslated',
],
}