root/galaxy-central/eggs/pycrypto-2.0.1-py2.6-macosx-10.6-universal-ucs2.egg/Crypto/test.py @ 3

リビジョン 3, 0.9 KB (コミッタ: kohda, 14 年 前)

Install Unix tools  http://hannonlab.cshl.edu/galaxy_unix_tools/galaxy.html

行番号 
1#
2# Test script for the Python Cryptography Toolkit.
3#
4
5__revision__ = "$Id: test.py,v 1.7 2002/07/11 14:31:19 akuchling Exp $"
6
7import os, sys
8
9
10# Add the build directory to the front of sys.path
11from distutils.util import get_platform
12s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
13s = os.path.join(os.getcwd(), s)
14sys.path.insert(0, s)
15s = os.path.join(os.getcwd(), 'test')
16sys.path.insert(0, s)
17
18from Crypto.Util import test
19
20args = sys.argv[1:]
21quiet = "--quiet" in args
22if quiet: args.remove('--quiet')
23
24if not quiet:
25    print '\nStream Ciphers:'
26    print '==============='
27
28if args: test.TestStreamModules(args, verbose= not quiet)
29else: test.TestStreamModules(verbose= not quiet)
30
31if not quiet:
32    print '\nBlock Ciphers:'
33    print '=============='
34
35if args: test.TestBlockModules(args, verbose= not quiet)
36else: test.TestBlockModules(verbose= not quiet)
37
38
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。