Merging upstream changes to allow compiling python3.13 wheels
This commit is contained in:
parent
70f0118baf
commit
8ea48ee2ad
19 changed files with 639 additions and 478 deletions
39
tests/__main__.py
Normal file
39
tests/__main__.py
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
import optparse
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from tests.backup import suite as backup_suite
|
||||
from tests.dbapi import suite as dbapi_suite
|
||||
from tests.factory import suite as factory_suite
|
||||
from tests.hooks import suite as hooks_suite
|
||||
from tests.regression import suite as regression_suite
|
||||
from tests.transactions import suite as transactions_suite
|
||||
from tests.ttypes import suite as types_suite
|
||||
from tests.userfunctions import suite as userfunctions_suite
|
||||
|
||||
|
||||
def test(verbosity=1, failfast=False):
|
||||
runner = unittest.TextTestRunner(verbosity=verbosity, failfast=failfast)
|
||||
all_tests = unittest.TestSuite((
|
||||
backup_suite(),
|
||||
dbapi_suite(),
|
||||
factory_suite(),
|
||||
hooks_suite(),
|
||||
regression_suite(),
|
||||
transactions_suite(),
|
||||
types_suite(),
|
||||
userfunctions_suite()))
|
||||
results = runner.run(all_tests)
|
||||
return results.failures, results.errors
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = optparse.OptionParser()
|
||||
parser.add_option('-v', '--verbosity', default=1, dest='verbosity',
|
||||
type='int', help='output verbosity, default=1')
|
||||
parser.add_option('-f', '--failfast', action='store_true', dest='failfast')
|
||||
options, args = parser.parse_args()
|
||||
|
||||
failures, errors = test(options.verbosity, options.failfast)
|
||||
if failures or errors:
|
||||
sys.exit(1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue