Changeset 3241


Ignore:
Timestamp:
May 30, 2013, 1:38:57 PM (6 years ago)
Author:
ksherdy
Message:

Del readme.

Location:
proto
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • proto/JSON/json_prototype.py

    r873 r3241  
    5858        Escape characters are either escaped and unmarked or the following character in an odd length run is marked.
    5959        """
    60         odd = simd_const_4('a',EOF_mask)  # little endian
    61         even = simd_const_4('5',EOF_mask) # little endian               
     60        odd = simd_const_4('a',EOF_mask) 
     61        even = simd_const_4('5',EOF_mask)
    6262       
    6363        start = Lex.RSolidus &~ bitutil.Advance(Lex.RSolidus)
  • proto/PDF/test/run_tests.py

    r2664 r3241  
    11#
    2 # run_tests.py - Length Sorted Symbol Table Tests
     2# run_tests.py
    33#
    4 # Quick-and-dirty Python symbol table test script
    5 # to generates expected output files for diff and gid tests.
     4# Quick-and-dirty Python PDF test script.
     5# Generates expected output files.
     6# Diffs generated files against expected values.
    67#
    78# Created on: April 12, 2012
    8 # Author: Ken Herdy
     9# Modified: November 2012 - Re-targetted for PDF tests.
     10# Author: Ken Herdy, Ben Hull
    911#
    1012#----------------------------------------------------------------------------
    1113# Edit:
    12 program_dir_path='..'
     14#program_path='../pdf.py'
    1315test_dir_path='../test/data'
    14 out_dir_path='../test/pout'
     16out_dir_path='../test/out'
     17test_suffix='.in'
     18
    1519#----------------------------------------------------------------------------
    1620import sys
     
    2428#----------------------------------------------------------------------------
    2529
    26 def diff_testcase(program, input_file, outfile_root):
     30def gen_test_file(program, input_file, outfile_root):
    2731        (head, tail) = os.path.split(input_file)
    2832        temp = head[head.find('/')+1:]
     
    3539        print head + os.path.sep + tail
    3640        out_f = open(head + os.path.sep + tail, 'w')
    37         if program[-3:]=='.py':
     41        if program.endswith('.py'):
    3842                subprocess.call(['python', program, input_file], stderr=None, stdout=out_f)
    3943        else:
     
    4145        out_f.close()
    4246
    43 def gen_test_files(test_dir_path):
     47def gen_test_file_list(test_dir_path):
    4448    test_files = []
    4549    for dirname, dirnames, filenames in os.walk(test_dir_path):
    4650            for filename in filenames:
    47                     if filename.endswith('.test') and not filename.endswith('.svn-base'):
     51                    if filename.endswith(test_suffix) and not filename.endswith('.svn-base'):
    4852                            test_files.append(os.path.relpath(os.path.join(dirname, filename)))
    4953    return test_files
     
    5660        """Return an C{optparse.OptionParser} instance tied to this configuration."""
    5761       
    58         parser = optparse.OptionParser(usage='python %prog [options] <program>',
    59                                         version='1.0',
    60                                         )
     62        parser = optparse.OptionParser(usage='python %prog', version='1.0')
    6163
    6264        return parser
     
    6567if __name__ == "__main__":
    6668
    67         option_parser = get_option_parser()
     69        option_parser = get_option_parser()
    6870        options, args = option_parser.parse_args(sys.argv[1:])
    6971
     
    7274            sys.exit()
    7375
    74         program = os.path.join(program_dir_path,sys.argv[1])
    75         test_files = gen_test_files(test_dir_path)
     76        if not os.path.isfile(sys.argv[1]):
     77            option_parser.print_usage()
     78            sys.exit()
     79
     80        program = sys.argv[1]
     81
     82        test_files = gen_test_file_list(test_dir_path)
     83
     84        print test_files
    7685
    7786        for test_file in test_files:
    78                 diff_testcase(program, test_file, out_dir_path)
     87                gen_test_file(program, test_file, out_dir_path)
  • proto/gml2svg/C/xerces/gml2svg.cpp

    r2858 r3241  
    3030
    3131#ifdef BUFFER_PROFILING
    32     BOM_Table * timer;
     32    BOM_Table * parser_timer;
    3333#elif PAPI
    3434    #include <cc.h>
     
    3636    CC * timer;
    3737#else
    38     void * timer;
     38    void * parser_timer;
    3939#endif
    4040
     
    139139        #endif
    140140       
    141         PERF_SEC_INIT(timer);
     141        PERF_SEC_INIT(parser_timer);
    142142
    143143        string cmd_line;
     
    148148        }
    149149
    150 //      timer->set_cmd(cmd_line);
     150//      parser_timer->set_cmd(cmd_line);
    151151
    152152        int layer_count = FEATURE_LAYER_COUNT; /* ignore point geometries */
     
    159159        #if defined(NAIVE_FORMATTED_IO)
    160160                fprintf(stdout,"IO = NAIVE_FORMATTED_IO\n");
    161                 PERF_SEC_ADD_PARAM(timer, "IO", "NAIVE_FORMATTED_IO");
     161                PERF_SEC_ADD_PARAM(parser_timer, "IO", "NAIVE_FORMATTED_IO");
    162162        #elif defined(FORMATTED_IO)
    163163                fprintf(stdout,"IO = FORMATTED_IO\n");
    164                 PERF_SEC_ADD_PARAM(timer, "IO", "FORMATTED_IO");
     164                PERF_SEC_ADD_PARAM(parser_timer, "IO", "FORMATTED_IO");
    165165        #elif defined(MEMCPY_IO)
    166166                fprintf(stdout,"IO = MEMCPY_IO\n");
    167                 PERF_SEC_ADD_PARAM(timer, "IO", "MEMCPY_IO");
     167                PERF_SEC_ADD_PARAM(parser_timer, "IO", "MEMCPY_IO");
    168168        #endif
    169169
     
    172172        #if defined(WORLD2SCREEN)
    173173                fprintf(stdout, "World2Screen transformations = true.\n");
    174                 PERF_SEC_ADD_PARAM(timer, "WORLD2SCREEN", "true");
     174                PERF_SEC_ADD_PARAM(parser_timer, "WORLD2SCREEN", "true");
    175175        #else
    176176                fprintf(stdout, "World2Screen transformations = false.\n");
    177                 PERF_SEC_ADD_PARAM(timer, "WORLD2SCREEN", "false");
     177                PERF_SEC_ADD_PARAM(parser_timer, "WORLD2SCREEN", "false");
    178178        #endif
    179179
     
    213213                strcat(svg_filename,SVG_DOT_EXT);
    214214
    215     PERF_SEC_ADD_PARAM(timer, "Layer", feature_layers[i].lname);
     215    PERF_SEC_ADD_PARAM(parser_timer, "Layer", feature_layers[i].lname);
    216216
    217217                if(!(out_file = fopen(svg_filename, "w")))
     
    274274                        }
    275275
    276                         PERF_SEC_END(timer, fileinfo.st_size);
     276                        PERF_SEC_END(parser_timer, fileinfo.st_size);
    277277
    278278                        if(SHOW_ITERATION_RESULTS)
  • proto/parabix2/pabloj_template.cpp

    r3195 r3241  
    11// PabloJ generated headers
    2 #include "/home/ksherdy/Temp/workspace/pabloj/output/cpplang/pablo_definitions.hpp"
     2#include "/home/ken/workspace/pabloj/output/cpplang/pablo_definitions.hpp"
    33
    44// CPP standard headers
  • proto/parabix2/src/run_all.py

    r1490 r3241  
    1313output_files = output_home+"/Files"
    1414output_messages = output_home+"/Messages"
    15 program_to_test = "xmlwf"
     15program_to_test = "xmlwfj"
    1616edition5_program_to_test = 'markup_stats_5e'
    1717testcases = []
Note: See TracChangeset for help on using the changeset viewer.