View | Details | Raw Unified | Return to bug 2949
Collapse All | Expand All

(-)a/src/core/model/test.cc (-2 / +8 lines)
 Lines 955-961    Link Here 
955
          fullness = arg + strlen("--fullness=");
955
          fullness = arg + strlen("--fullness=");
956
956
957
          // Set the maximum test length allowed.
957
          // Set the maximum test length allowed.
958
          if (fullness == "EXTENSIVE")
958
          if (fullness == "QUICK")
959
            {
960
              maximumTestDuration = TestCase::QUICK;
961
            }
962
          else if (fullness == "EXTENSIVE")
959
            {
963
            {
960
              maximumTestDuration = TestCase::EXTENSIVE;
964
              maximumTestDuration = TestCase::EXTENSIVE;
961
            }
965
            }
 Lines 965-971    Link Here 
965
            }
969
            }
966
          else
970
          else
967
            {
971
            {
968
              maximumTestDuration = TestCase::QUICK;
972
              // Wrong fullness option
973
              PrintHelp (progname);
974
              return 3;
969
            }
975
            }
970
        }
976
        }
971
      else
977
      else
(-)a/test.py (-2 / +2 lines)
 Lines 1887-1894    Link Here 
1887
    parser.add_option("-u", "--update-data", action="store_true", dest="update_data", default=False,
1887
    parser.add_option("-u", "--update-data", action="store_true", dest="update_data", default=False,
1888
                      help="If examples use reference data files, get them to re-generate them")
1888
                      help="If examples use reference data files, get them to re-generate them")
1889
1889
1890
    parser.add_option("-f", "--fullness", action="store", type="string", dest="fullness", default="QUICK",
1890
    parser.add_option("-f", "--fullness", action="store", type="choice", dest="fullness", default="QUICK",
1891
                      metavar="FULLNESS",
1891
                      metavar="FULLNESS", choices=["QUICK", "EXTENSIVE", "TAKES_FOREVER"],
1892
                      help="choose the duration of tests to run: QUICK, EXTENSIVE, or TAKES_FOREVER, where EXTENSIVE includes QUICK and TAKES_FOREVER includes QUICK and EXTENSIVE (only QUICK tests are run by default)")
1892
                      help="choose the duration of tests to run: QUICK, EXTENSIVE, or TAKES_FOREVER, where EXTENSIVE includes QUICK and TAKES_FOREVER includes QUICK and EXTENSIVE (only QUICK tests are run by default)")
1893
1893
1894
    parser.add_option("-g", "--grind", action="store_true", dest="valgrind", default=False,
1894
    parser.add_option("-g", "--grind", action="store_true", dest="valgrind", default=False,

Return to bug 2949