• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python
2
3#
4# Copyright (C) 2024 The Android Open Source Project
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10#      http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18
19import os
20import sys
21import tempfile
22import unittest
23
24import test_alias_builder
25import test_commandline
26import test_custom_json
27import test_fallback_builder
28import test_family_builder
29import test_font_builder
30import test_xml_builder
31
32if __name__ == "__main__":
33  loader = unittest.TestLoader()
34  # TODO: can we load all tests from the directory?
35  testsuite = unittest.suite.TestSuite()
36  testsuite.addTest(loader.loadTestsFromModule(test_alias_builder))
37  testsuite.addTest(loader.loadTestsFromModule(test_commandline))
38  testsuite.addTest(loader.loadTestsFromModule(test_custom_json))
39  testsuite.addTest(loader.loadTestsFromModule(test_fallback_builder))
40  testsuite.addTest(loader.loadTestsFromModule(test_family_builder))
41  testsuite.addTest(loader.loadTestsFromModule(test_font_builder))
42  testsuite.addTest(loader.loadTestsFromModule(test_xml_builder))
43  assert testsuite.countTestCases()
44  unittest.TextTestRunner(verbosity=2).run(testsuite)
45