Mercurial > ~astiob > upreckon > hgweb
comparison 2.00/test-svn.py @ 33:f90bd2d1a12b
Converted revision reporting from SVN to hg.
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Mon, 29 Nov 2010 22:15:01 +0000 |
parents | 5bbb68833868 |
children | ddb3e1098727 |
comparison
equal
deleted
inserted
replaced
32:3000bb94addb | 33:f90bd2d1a12b |
---|---|
8 say('Error: your installation of test.py is incomplete;', str(e).lower() + '.', file=sys.stderr) | 8 say('Error: your installation of test.py is incomplete;', str(e).lower() + '.', file=sys.stderr) |
9 sys.exit(3) | 9 sys.exit(3) |
10 | 10 |
11 from compat import * | 11 from compat import * |
12 | 12 |
13 # $Rev$ | 13 version = '2.00.0 ($$REV$$)' |
14 version = '2.00.0 (SVN r$$REV$$)' | |
15 parser = optparse.OptionParser(version='test.py '+version, epilog='Python 2.5 or newer is required.') | 14 parser = optparse.OptionParser(version='test.py '+version, epilog='Python 2.5 or newer is required.') |
16 parser.add_option('-1', dest='legacy', action='store_true', default=False, help='handle configuration files in a way more compatible with test.py 1.x') | 15 parser.add_option('-1', dest='legacy', action='store_true', default=False, help='handle configuration files in a way more compatible with test.py 1.x') |
17 parser.add_option('-u', '--update', dest='update', action='store_true', default=False, help='update the installed test.py to the latest publicly available version') | 16 parser.add_option('-u', '--update', dest='update', action='store_true', default=False, help='update the installed test.py to the latest publicly available version') |
18 parser.add_option('-p', '--problem', dest='problems', metavar='PROBLEM', action='append', help='test only the PROBLEM (this option can be specified more than once with different problem names, all of which will be tested)') | 17 parser.add_option('-p', '--problem', dest='problems', metavar='PROBLEM', action='append', help='test only the PROBLEM (this option can be specified more than once with different problem names, all of which will be tested)') |
19 parser.add_option('-m', '--copy-io', dest='copyonly', action='store_true', default=False, help='create a copy of the input/output files of the last test case for manual testing and exit') | 18 parser.add_option('-m', '--copy-io', dest='copyonly', action='store_true', default=False, help='create a copy of the input/output files of the last test case for manual testing and exit') |