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 | import TestTools
|
---|
17 |
|
---|
18 | def GetCTestSuite():
|
---|
19 | import CToolsTests
|
---|
20 | return CToolsTests.TheTestSuite()
|
---|
21 |
|
---|
22 | def GetPythonTestSuite():
|
---|
23 | import PythonToolsTests
|
---|
24 | return PythonToolsTests.TheTestSuite()
|
---|
25 |
|
---|
26 | def GetAllTestsSuite():
|
---|
27 | return unittest.TestSuite([GetCTestSuite(), GetPythonTestSuite()])
|
---|
28 |
|
---|
29 | if __name__ == '__main__':
|
---|
30 | allTests = GetAllTestsSuite()
|
---|
31 | unittest.TextTestRunner(verbosity=2).run(allTests)
|
---|
32 |
|
---|