run_exhaustive_tests.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/python
  2. #
  3. # Copyright 2015 Google Inc. All Rights Reserved.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. """Time-consuming tests for general health of the fonts."""
  17. import unittest
  18. from nototools.unittests import font_tests
  19. FONTS = font_tests.load_fonts(
  20. ['out/RobotoTTF/*.ttf', 'out/RobotoCondensedTTF/*.ttf'],
  21. expected_count=20)
  22. class TestSpacingMarks(font_tests.TestSpacingMarks):
  23. loaded_fonts = FONTS
  24. class TestSoftDottedChars(font_tests.TestSoftDottedChars):
  25. loaded_fonts = FONTS
  26. # FIXME: Test is currently disabled, since the fonts fail it
  27. test_combinations = None
  28. if __name__ == '__main__':
  29. unittest.main()