]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Tests/RunTests.py
2 # Unit tests for BaseTools utilities
4 # Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
18 except ModuleNotFoundError
:
20 Python reported: "No module named 'distutils.util"
27 return CToolsTests
.TheTestSuite()
29 def GetPythonTestSuite():
30 import PythonToolsTests
31 return PythonToolsTests
.TheTestSuite()
33 def GetAllTestsSuite():
34 return unittest
.TestSuite([GetCTestSuite(), GetPythonTestSuite()])
36 if __name__
== '__main__':
37 allTests
= GetAllTestsSuite()
38 unittest
.TextTestRunner(verbosity
=2).run(allTests
)