]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Tests/RunTests.py
BaseTools:The code used to test python module is moved to edksetup
[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 import TestTools
16
17 def GetCTestSuite():
18 import CToolsTests
19 return CToolsTests.TheTestSuite()
20
21 def GetPythonTestSuite():
22 import PythonToolsTests
23 return PythonToolsTests.TheTestSuite()
24
25 def GetAllTestsSuite():
26 return unittest.TestSuite([GetCTestSuite(), GetPythonTestSuite()])
27
28 if __name__ == '__main__':
29 allTests = GetAllTestsSuite()
30 unittest.TextTestRunner(verbosity=2).run(allTests)
31