summaryrefslogtreecommitdiff
path: root/scripts/run_general_tests.py
blob: 8b56305111e0fc068c6eb0f11079a4d23a3d4253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/python
"""Test general health of the fonts."""

import unittest

import common_tests

FONTS = common_tests.load_fonts(
    ['out/RobotoTTF/*.ttf', 'out/RobotoCondensedTTF/*.ttf'],
    expected_count=18)

class TestItalicAngle(common_tests.TestItalicAngle):
    loaded_fonts = FONTS


class TestMetaInfo(common_tests.TestMetaInfo):
    loaded_fonts = FONTS
    test_us_weight = None
    test_version_numbers = None


class TestDigitWidths(common_tests.TestDigitWidths):
    loaded_fonts = FONTS


class TestCharacterCoverage(common_tests.TestCharacterCoverage):
    loaded_fonts = FONTS


class TestLigatures(common_tests.TestLigatures):
    loaded_fonts = FONTS


if __name__ == '__main__':
    unittest.main()