Changeset 2114 for trunk


Ignore:
Timestamp:
May 17, 2012, 5:50:13 PM (7 years ago)
Author:
ksherdy
Message:

Minor update to test script and buffer.hpp

Location:
trunk/symbol_table
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/symbol_table/src/buffer.hpp

    r2113 r2114  
    55// Buffer Management
    66///////////////////////////////////////////////////////////////////////////
    7 #define PADDING_BLOCKS 1
     7#define PADDING_BLOCKS 0
    88#define PADDING_SIZE BLOCK_SIZE * PADDING_BLOCKS
    9 #define LOOKBACK_BLOCKS 1
     9#define LOOKBACK_BLOCKS 4
    1010#define LOOKBACK_SIZE BLOCK_SIZE * LOOKBACK_BLOCKS
    11 #define SEGMENT_BLOCKS 5000                             // Slurp file
     11#define SEGMENT_BLOCKS  10                              // Slurp file
    1212#define SEGMENT_SIZE BLOCK_SIZE * (SEGMENT_BLOCKS)      // A multiple of BLOCK_SIZE (n bytes)
    13 #define SEGMENT_ALLOC_SIZE (LOOKBACK_SIZE + SEGMENT_SIZE + PADDING_SIZE) / sizeof(BitBlock)
     13#define SEGMENT_ALLOC_SIZE (LOOKBACK_SIZE + SEGMENT_SIZE + PADDING_SIZE) // / sizeof(BitBlock)
    1414
    1515#endif // BUFFER_HPP
  • trunk/symbol_table/test/run_tests.py

    r2101 r2114  
    3232        e = e + int(t.split('_')[2])
    3333
     34    print file_name
     35
    3436    output = subprocess.Popen([program, input_file], stdout=subprocess.PIPE).communicate()[0]
    3537    a = int(output)
    3638
    37     print file_name
    3839    print "Expected: %d" % e
    3940    print "Actual: %d" % a
     
    112113            if all_true:
    113114                print "All pass."
     115            else:
     116                print "Fail."
    114117       
Note: See TracChangeset for help on using the changeset viewer.