VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/BaseTools/Tests/RunTests.py@ 99396

Last change on this file since 99396 was 80721, checked in by vboxsync, 6 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

  • Property svn:eol-style set to native
File size: 773 bytes
Line 
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#
12import os
13import sys
14import unittest
15
16try:
17 import distutils.util
18except ModuleNotFoundError:
19 sys.exit('''
20Python reported: "No module named 'distutils.util"
21''')
22
23import TestTools
24
25def GetCTestSuite():
26 import CToolsTests
27 return CToolsTests.TheTestSuite()
28
29def GetPythonTestSuite():
30 import PythonToolsTests
31 return PythonToolsTests.TheTestSuite()
32
33def GetAllTestsSuite():
34 return unittest.TestSuite([GetCTestSuite(), GetPythonTestSuite()])
35
36if __name__ == '__main__':
37 allTests = GetAllTestsSuite()
38 unittest.TextTestRunner(verbosity=2).run(allTests)
39
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette