1 # Test driver for bsddb package.
7 from test
.test_support
import requires
, verbose
, run_suite
9 # When running as a script instead of within the regrtest framework, skip the
10 # requires test, since it's obvious we want to run them.
11 if __name__
<> '__main__':
15 if 'verbose' in sys
.argv
:
17 sys
.argv
.remove('verbose')
19 if 'silent' in sys
.argv
: # take care of old flag, just in case
21 sys
.argv
.remove('silent')
42 alltests
= unittest
.TestSuite()
43 for name
in test_modules
:
44 module
= __import__("bsddb.test."+name
, globals(), locals(), name
)
46 alltests
.addTest(module
.test_suite())
50 # For invocation through regrtest
56 # For invocation as a script
57 if __name__
== '__main__':
60 print db
.DB_VERSION_STRING
61 print 'bsddb.db.version(): %s' % (db
.version(),)
62 print 'bsddb.db.__version__: %s' % db
.__version
__
63 print 'bsddb.db.cvsid: %s' % db
.cvsid
64 print 'python version: %s' % sys
.version
67 unittest
.main(defaultTest
='suite')