1 | ## @file
|
---|
2 | # Unit tests for Python based BaseTools
|
---|
3 | #
|
---|
4 | # Copyright (c) 2008 - 2015, 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 |
|
---|
17 | def TheTestSuite():
|
---|
18 | suites = []
|
---|
19 | import CheckPythonSyntax
|
---|
20 | suites.append(CheckPythonSyntax.TheTestSuite())
|
---|
21 | import CheckUnicodeSourceFiles
|
---|
22 | suites.append(CheckUnicodeSourceFiles.TheTestSuite())
|
---|
23 | return unittest.TestSuite(suites)
|
---|
24 |
|
---|
25 | if __name__ == '__main__':
|
---|
26 | allTests = TheTestSuite()
|
---|
27 | unittest.TextTestRunner().run(allTests)
|
---|
28 |
|
---|