Changeset 174 for test/diff-reglookup


Ignore:
Timestamp:
03/08/10 20:44:29 (15 years ago)
Author:
tim
Message:

minor improvements to test scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/diff-reglookup

    r171 r174  
    1111compareOneFile()
    1212{
    13   $OLD $OPTS $F > $TMP_DIR/old.csv
    14   $NEW $OPTS $F > $TMP_DIR/new.csv
    15   diff -ud $TMP_DIR/old.csv $TMP_DIR/new.csv > $OUTPUT_DIR/$PREFIX-${BNAME}.diff 
    16   SIZE=`stat -c '%s' $OUTPUT_DIR/$PREFIX-${BNAME}.diff`
     13  echo "Comparing output on $BNAME, test case: $CASE" 1>&2
     14
     15  echo "  $OLD $OPTS $F" 1>&2
     16  $OLD $OPTS $F > $TMP_DIR/old.csv
     17
     18  echo "  $NEW $OPTS $F" 1>&2
     19  $NEW $OPTS $F > $TMP_DIR/new.csv
     20
     21  diff -ud $TMP_DIR/old.csv $TMP_DIR/new.csv > $OUTPUT_DIR/$CASE-${BNAME}.diff 
     22  SIZE=`stat -c '%s' $OUTPUT_DIR/$CASE-${BNAME}.diff`
    1723  if [ "x$SIZE" = "x0" ]; then
    18     rm $OUTPUT_DIR/$PREFIX-${BNAME}.diff
     24    rm $OUTPUT_DIR/$CASE-${BNAME}.diff
    1925  fi
    2026}
     
    2430  BNAME=`basename $F`
    2531
    26   PREFIX=basic
     32  CASE=basic
    2733  OPTS=''
    2834  compareOneFile
    2935
    30   PREFIX=security
     36  CASE=security
    3137  OPTS='-s'
    3238  compareOneFile
    3339
    34   PREFIX=type
     40  CASE=type
    3541  OPTS='-t MULTI_SZ'
    3642  compareOneFile
    3743
    38   PREFIX=security+type
     44  CASE=security+type
    3945  OPTS='-s -t KEY'
    4046  compareOneFile
Note: See TracChangeset for help on using the changeset viewer.