Author: bugman Date: Fri Jan 4 14:34:59 2008 New Revision: 4320 URL: http://svn.gna.org/viewcvs/relax?rev=4320&view=rev Log: Changed the --unit-test command line option to --unit-tests.
The old option still works thanks to the optparse package. Modified: 1.3/relax Modified: 1.3/relax URL: http://svn.gna.org/viewcvs/relax/1.3/relax?rev=4320&r1=4319&r2=4320&view=diff ============================================================================== --- 1.3/relax (original) +++ 1.3/relax Fri Jan 4 14:34:59 2008 @@ -189,7 +189,7 @@ system_result = sys_runner.run() # Execute the relax unit tests. - elif mode == 'unit test': + elif mode == 'unit tests': # Create a string to pass to the interpreter to print. self.set_intro_string() @@ -221,7 +221,7 @@ parser.add_option('--test', action='store_true', dest='test', default=0, help='run relax in test mode') parser.add_option('--test-suite', action='store_true', dest='test_suite', default=0, help='execute the relax test suite') parser.add_option('--system-tests', action='store_true', dest='system_tests', default=0, help='execute the relax system/functional tests (part of the test suite)') - parser.add_option('--unit-test', action='store_true', dest='unit_test', default=0, help='execute the relax unit tests (part of the test suite)') + parser.add_option('--unit-tests', action='store_true', dest='unit_tests', default=0, help='execute the relax unit tests (part of the test suite)') parser.add_option('--thread', action='store_true', dest='thread', default=0, help='run relax in threading mode (this mode should not be invoked by a user)') parser.add_option('-v', '--version', action='store_true', dest='version', default=0, help='show the version number and exit') @@ -280,7 +280,7 @@ mode = 'version' # Run the relax tests. - elif options.test_suite or options.system_tests or options.unit_test: + elif options.test_suite or options.system_tests or options.unit_tests: # Make sure no script is supplied. if self.script_file: parser.error("a script should not be supplied when executing the test suite") @@ -298,8 +298,8 @@ mode = 'test suite' elif options.system_tests: mode = 'system tests' - elif options.unit_test: - mode = 'unit test' + elif options.unit_tests: + mode = 'unit tests' # Test mode. @@ -309,7 +309,7 @@ parser.error("a script should not be supplied in test mode") # Exclusive modes. - if options.test_suite or options.system_tests or options.unit_test: + if options.test_suite or options.system_tests or options.unit_tests: parser.error("the relax test mode and executing the test suite are mutually exclusive") elif options.thread: parser.error("the relax modes test and thread are mutually exclusive") @@ -341,7 +341,7 @@ parser.error("a script should not be supplied in test mode") # Exclusive modes. - if options.test_suite or options.system_tests or options.unit_test: + if options.test_suite or options.system_tests or options.unit_tests: parser.error("the relax licence mode and executing the test suite are mutually exclusive") elif options.test: parser.error("the relax modes licence and test are mutually exclusive") _______________________________________________ relax (http://nmr-relax.com) This is the relax-commits mailing list relax-commits@gna.org To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits