]>
Commit | Line | Data |
---|---|---|
f51461c8 LG |
1 | ## @file\r |
2 | # Unit tests for Python based BaseTools\r | |
3 | #\r | |
df91e0f9 | 4 | # Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>\r |
f51461c8 | 5 | #\r |
2e351cbe | 6 | # SPDX-License-Identifier: BSD-2-Clause-Patent\r |
f51461c8 LG |
7 | #\r |
8 | \r | |
9 | ##\r | |
10 | # Import Modules\r | |
11 | #\r | |
12 | import os\r | |
13 | import sys\r | |
14 | import unittest\r | |
15 | \r | |
16 | \r | |
17 | def TheTestSuite():\r | |
18 | suites = []\r | |
19 | import CheckPythonSyntax\r | |
20 | suites.append(CheckPythonSyntax.TheTestSuite())\r | |
df91e0f9 JJ |
21 | import CheckUnicodeSourceFiles\r |
22 | suites.append(CheckUnicodeSourceFiles.TheTestSuite())\r | |
f51461c8 LG |
23 | return unittest.TestSuite(suites)\r |
24 | \r | |
25 | if __name__ == '__main__':\r | |
26 | allTests = TheTestSuite()\r | |
27 | unittest.TextTestRunner().run(allTests)\r | |
28 | \r |