]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Tests/RunTests.py
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / BaseTools / Tests / RunTests.py
1 ## @file
2 # Unit tests for BaseTools utilities
3 #
4 # Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
5 #
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
7 #
8
9 ##
10 # Import Modules
11 #
12 import os
13 import sys
14 import unittest
15
16 try:
17 import distutils.util
18 except ModuleNotFoundError:
19 sys.exit('''
20 Python reported: "No module named 'distutils.util"
21 ''')
22
23 import TestTools
24
25 def GetCTestSuite():
26 import CToolsTests
27 return CToolsTests.TheTestSuite()
28
29 def GetPythonTestSuite():
30 import PythonToolsTests
31 return PythonToolsTests.TheTestSuite()
32
33 def GetAllTestsSuite():
34 return unittest.TestSuite([GetCTestSuite(), GetPythonTestSuite()])
35
36 if __name__ == '__main__':
37 allTests = GetAllTestsSuite()
38 unittest.TextTestRunner(verbosity=2).run(allTests)
39