]>
Commit | Line | Data |
---|---|---|
1 | ## @file\r | |
2 | # Unit tests for Python based BaseTools\r | |
3 | #\r | |
4 | # Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>\r | |
5 | #\r | |
6 | # SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
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 | |
21 | import CheckUnicodeSourceFiles\r | |
22 | suites.append(CheckUnicodeSourceFiles.TheTestSuite())\r | |
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 |