PythonToolsTests.py 618 B

12345678910111213141516171819202122232425262728
  1. ## @file
  2. # Unit tests for Python based BaseTools
  3. #
  4. # Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>
  5. #
  6. # SPDX-License-Identifier: BSD-2-Clause-Patent
  7. #
  8. ##
  9. # Import Modules
  10. #
  11. import os
  12. import sys
  13. import unittest
  14. def TheTestSuite():
  15. suites = []
  16. import CheckPythonSyntax
  17. suites.append(CheckPythonSyntax.TheTestSuite())
  18. import CheckUnicodeSourceFiles
  19. suites.append(CheckUnicodeSourceFiles.TheTestSuite())
  20. return unittest.TestSuite(suites)
  21. if __name__ == '__main__':
  22. allTests = TheTestSuite()
  23. unittest.TextTestRunner().run(allTests)