Changeset 9948:8bd360ffe630 in orange


Ignore:
Timestamp:
02/07/12 14:15:42 (2 years ago)
Author:
Miha Stajdohar <miha.stajdohar@…>
Branch:
default
rebase_source:
beb3ecd599b6fc0cde61b30a63dde70792370bbe
Message:

New test folders.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/testing/regression/xtest.py

    r9947 r9948  
    171171def usage(): 
    172172    """Print out help.""" 
    173     print "%s [test|update|report|report-html|errors] -[h|s] [--single|--module=[orange|docs]|--timeout=<#>|--dir=<dir>|] <files>" % sys.argv[0] 
     173    print "%s [test|update|report|report-html|errors] -[h|s] [--single|--module=[all|orange|docs]|--timeout=<#>|--dir=<dir>|] <files>" % sys.argv[0] 
    174174    print "  test:   regression tests on all scripts (default)" 
    175175    print "  update: regression tests on all previously failed scripts" 
     
    208208 
    209209    module = opts.get("--module", "all") 
    210     if module in ["all"]: 
     210    if module == "all": 
    211211        root = "%s/.." % environ.install_dir 
    212212        module = "orange" 
    213         dirs = [("modules", "Orange/doc/modules"), 
    214                 ("reference", "Orange/doc/reference"), 
    215                 ("ofb", "docs/tutorial/rst/code"), 
    216                 ("orange25", "docs/reference/rst/code")] 
    217     elif module in ["orange"]: 
     213        dirs = [("tests", "Orange/testing/tests"), 
     214                ("tests_20", "Orange/testing/tests_20"), 
     215                ("tutorial", "docs/tutorial/rst/code"), 
     216                ("reference", "docs/reference/rst/code")] 
     217    elif module == "orange": 
     218        root = "%s" % environ.install_dir 
     219        module = "orange" 
     220        dirs = [("tests", "testing/tests"), 
     221                ("tests_20", "testing/tests_20")] 
     222    elif module == "docs": 
    218223        root = "%s/.." % environ.install_dir 
    219         module = "docs" 
    220         dirs = [("modules", "Orange/doc/modules"), 
    221                 ("reference", "Orange/doc/reference"), 
    222                 ("ofb", "docs/tutorial/rst/code")] 
    223     elif module in ["orange20"]: 
    224         pass 
     224        module = "orange" 
     225        dirs = [("tutorial", "docs/tutorial/rst/code"), 
     226                ("reference", "docs/reference/rst/code")] 
    225227    else: 
    226228        print "Error: %s is wrong name of the module, should be in [orange|docs]" % module 
Note: See TracChangeset for help on using the changeset viewer.