diff options
author | Robey Pointer <robey@lag.net> | 2004-10-20 16:52:51 +0000 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2004-10-20 16:52:51 +0000 |
commit | 6caf15b4256c969ca0e0970281d3deb21e29bb62 (patch) | |
tree | a5e0ec6608fc78fd2383d4ffdf1327bf64be109f /test.py | |
parent | 2939b6936b50d207048d9e245c202c6a7c705643 (diff) |
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-94]
start testing Transport
the beginnings of tests for Transport. only the bare minimum is there right
now.
also started doc'ing things up to ivysaur.
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -31,7 +31,7 @@ sys.path.append('tests/') from test_message import MessageTest from test_file import BufferedFileTest from test_pkey import KeyTest -#from test_transport import TransportTest +from test_transport import TransportTest from test_sftp import SFTPTest default_host = 'localhost' @@ -54,6 +54,8 @@ parser.add_option('-K', '--sftp-key', dest='keyfile', type='string', default=def parser.add_option('-P', '--sftp-passwd', dest='password', type='string', default=default_passwd, metavar='<password>', help='(optional) password to unlock the private key for sftp tests') +parser.add_option('--no-pkey', action='store_false', dest='use_pkey', default=True, + help='skip RSA/DSS private key tests (which can take a while)') options, args = parser.parse_args() if len(args) > 0: @@ -68,8 +70,9 @@ paramiko.util.log_to_file('test.log') suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(MessageTest)) suite.addTest(unittest.makeSuite(BufferedFileTest)) -suite.addTest(unittest.makeSuite(KeyTest)) -#suite.addTest(unittest.makeSuite(TransportTest)) +if options.use_pkey: + suite.addTest(unittest.makeSuite(KeyTest)) +suite.addTest(unittest.makeSuite(TransportTest)) if options.use_sftp: suite.addTest(unittest.makeSuite(SFTPTest)) unittest.TextTestRunner(verbosity=2).run(suite) |