mirror of
https://github.com/blender/blender-dev-tools.git
synced 2025-08-20 16:11:15 +00:00
39 lines
1.0 KiB
Python
Executable File
39 lines
1.0 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Usage: ./check_release.py -- ../path/to/release/folder
|
|
|
|
|
|
import os
|
|
import sys
|
|
import unittest
|
|
|
|
import check_module_enabled
|
|
import check_module_numpy
|
|
import check_module_requests
|
|
import check_static_binaries
|
|
from check_utils import sliceCommandLineArguments
|
|
|
|
|
|
def load_tests(loader, standard_tests, pattern):
|
|
standard_tests.addTests(loader.loadTestsFromTestCase(
|
|
check_module_enabled.UnitTesting))
|
|
standard_tests.addTests(loader.loadTestsFromTestCase(
|
|
check_module_numpy.UnitTesting))
|
|
standard_tests.addTests(loader.loadTestsFromTestCase(
|
|
check_module_requests.UnitTesting))
|
|
standard_tests.addTests(loader.loadTestsFromTestCase(
|
|
check_static_binaries.UnitTesting))
|
|
return standard_tests
|
|
|
|
|
|
def main():
|
|
# Slice command line arguments by '--'
|
|
unittest_args, parser_args = sliceCommandLineArguments()
|
|
# Construct and run unit tests.
|
|
unittest.main(argv=unittest_args)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|