Ignore:
Timestamp:
May 8, 2012, 12:33:57 PM (7 years ago)
Author:
ksherdy
Message:

Updated build and test script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/symbol_table/test/run_tests.py

    r2089 r2090  
    1717# Edit:
    1818program_dir_path='../src'
    19 test_dir_path=''
    20 out_dir_path='out'
     19test_dir_path='../test/in'
     20out_dir_path='../test/out'
    2121#----------------------------------------------------------------------------
    2222import sys
     
    4444        (head, tail) = os.path.split(input_file)
    4545        outputdir = os.path.join(outfile_root, tail)
    46         #if os.path.exists(outputdir)==True:
     46        print outputdir
     47       
    4748        (head, tail) = os.path.split(outputdir)
    4849        if os.path.exists(head)==False:         
     
    5455if __name__ == "__main__":
    5556
    56         if(len(sys.argv) < 3):
     57        if(len(sys.argv) < 2):
    5758                print usage
    5859                sys.exit()
    5960
    6061        program = os.path.join(program_dir_path,sys.argv[1])
    61         testfile_dir = os.path.join(test_dir_path,sys.argv[2])
    6262
    63         for dirname, dirnames, filenames in os.walk(testfile_dir):
     63        for dirname, dirnames, filenames in os.walk(test_dir_path):
    6464                for filename in filenames:
    6565                        if filename.endswith('.test') and not filename.endswith('.svn-base'):
    6666                                relfile = os.path.relpath(os.path.join(dirname, filename))
    6767                                diff_testcase(program, relfile, out_dir_path)
    68                                 gid_testcase(program, relfile)
     68                                #gid_testcase(program, relfile)
    6969
    7070       
Note: See TracChangeset for help on using the changeset viewer.