mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-18 15:27:48 +01:00
b1264ef1e3
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
40 lines
812 B
Python
Executable File
40 lines
812 B
Python
Executable File
## @file
|
|
# Unit tests for BaseTools utilities
|
|
#
|
|
# Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
|
|
##
|
|
# Import Modules
|
|
#
|
|
import os
|
|
import sys
|
|
import unittest
|
|
|
|
try:
|
|
import distutils.util
|
|
except ModuleNotFoundError:
|
|
sys.exit('''
|
|
Python reported: "No module named 'distutils.util"
|
|
''')
|
|
|
|
import TestTools
|
|
|
|
def GetCTestSuite():
|
|
import CToolsTests
|
|
return CToolsTests.TheTestSuite()
|
|
|
|
def GetPythonTestSuite():
|
|
import PythonToolsTests
|
|
return PythonToolsTests.TheTestSuite()
|
|
|
|
def GetAllTestsSuite():
|
|
return unittest.TestSuite([GetCTestSuite(), GetPythonTestSuite()])
|
|
|
|
if __name__ == '__main__':
|
|
allTests = GetAllTestsSuite()
|
|
unittest.TextTestRunner(verbosity=2).run(allTests)
|
|
|