]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Tests/RunTests.py
MdePkg: introduce OrderedCollectionLib library class
[mirror_edk2.git] / BaseTools / Tests / RunTests.py
CommitLineData
f51461c8
LG
1## @file\r
2# Unit tests for BaseTools utilities\r
3#\r
4# Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r
5#\r
6# This program and the accompanying materials\r
7# are licensed and made available under the terms and conditions of the BSD License\r
8# which accompanies this distribution. The full text of the license may be found at\r
9# http://opensource.org/licenses/bsd-license.php\r
10#\r
11# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13#\r
14\r
15##\r
16# Import Modules\r
17#\r
18import os\r
19import sys\r
20import unittest\r
21\r
22import TestTools\r
23\r
24sys.path.append(TestTools.PythonSourceDir)\r
25\r
26def GetCTestSuite():\r
27 import CToolsTests\r
28 return CToolsTests.TheTestSuite()\r
29\r
30def GetPythonTestSuite():\r
31 import PythonToolsTests\r
32 return PythonToolsTests.TheTestSuite()\r
33\r
34def GetAllTestsSuite():\r
35 return unittest.TestSuite([GetCTestSuite(), GetPythonTestSuite()])\r
36\r
37if __name__ == '__main__':\r
38 allTests = GetAllTestsSuite()\r
39 unittest.TextTestRunner(verbosity=2).run(allTests)\r
40\r