diff options
Diffstat (limited to 'tests/__main__.py')
-rw-r--r-- | tests/__main__.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/__main__.py b/tests/__main__.py new file mode 100644 index 00000000..1068ba8b --- /dev/null +++ b/tests/__main__.py @@ -0,0 +1,24 @@ +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com> +# License: http://snmplabs.com/pysnmp/license.html +# +try: + import unittest2 as unittest + +except ImportError: + import unittest + +suite = unittest.TestLoader().loadTestsFromNames( + ['tests.test_debug.suite', + 'tests.hlapi.test_auth.suite', + 'tests.hlapi.test_context.suite', + 'tests.hlapi.test_varbinds.suite', + + ] +) + + +if __name__ == '__main__': + unittest.TextTestRunner(verbosity=2).run(suite) |