comparison upreckon/upreckon-vcs @ 181:91fe19d9eba4 2.02 2.02.0

Created a branch for the 2.02 release
author Oleg Oshmyan <chortos@inbox.lv>
date Thu, 14 Jul 2011 16:47:49 +0300
parents 39f8d10dbff7
children
comparison
equal deleted inserted replaced
180:760d38ee86d6 181:91fe19d9eba4
6 6
7 from upreckon import compat 7 from upreckon import compat
8 from upreckon.compat import * 8 from upreckon.compat import *
9 9
10 version = '2.02.0 ($$REV$$)' 10 version = '2.02.0 ($$REV$$)'
11 parser = optparse.OptionParser(version='Upreckon '+version, epilog='Python 2.5 or newer is required.') 11 parser = optparse.OptionParser(version='Upreckon '+version, epilog='Python 2.6 or newer is required.')
12 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') 12 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')
13 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)') 13 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)')
14 parser.add_option('--list-problems', action='store_true', default=False, help='just list all problem names') 14 parser.add_option('--list-problems', action='store_true', default=False, help='just list all problem names')
15 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') 15 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')
16 parser.add_option('-x', '--auto-exit', dest='pause', action='store_false', default=True, help='do not wait for a key to be pressed after finishing testing') 16 parser.add_option('-x', '--auto-exit', dest='pause', action='store_false', default=True, help='do not wait for a key to be pressed after finishing testing')
17 #parser.add_option('-s', '--save-io', dest='erase', action='store_false', default=True, help='do not delete the copies of input/output files after the last test case; create copies of input files and store output in files even if the solution uses standard I/O; delete the stored input/output files if the solution uses standard I/O and the -c/--cleanup option is specified')
18 parser.add_option('-s', '--save-io', dest='erase', action='store_false', default=True, help='do not delete the copies of input/output files after the last test case; create copies of input files and store output in files even if the solution uses standard I/O') 17 parser.add_option('-s', '--save-io', dest='erase', action='store_false', default=True, help='do not delete the copies of input/output files after the last test case; create copies of input files and store output in files even if the solution uses standard I/O')
19 parser.add_option('-k', '--skim', action='store_true', default=False, help='skip test groups as soon as one test case is failed') 18 parser.add_option('-k', '--skim', action='store_true', default=False, help='skip test groups as soon as one test case is failed')
20 parser.add_option('--no-time-limits', dest='no_maxtime', action='store_true', default=False, help='disable all time limits') 19 parser.add_option('--no-time-limits', dest='no_maxtime', action='store_true', default=False, help='disable all time limits')
21 20
22 options, args = parser.parse_args() 21 options, args = parser.parse_args()