Changeset 174
- Timestamp:
- 03/08/10 20:44:29 (15 years ago)
- Location:
- test
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/diff-reglookup
r171 r174 11 11 compareOneFile() 12 12 { 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` 17 23 if [ "x$SIZE" = "x0" ]; then 18 rm $OUTPUT_DIR/$ PREFIX-${BNAME}.diff24 rm $OUTPUT_DIR/$CASE-${BNAME}.diff 19 25 fi 20 26 } … … 24 30 BNAME=`basename $F` 25 31 26 PREFIX=basic32 CASE=basic 27 33 OPTS='' 28 34 compareOneFile 29 35 30 PREFIX=security36 CASE=security 31 37 OPTS='-s' 32 38 compareOneFile 33 39 34 PREFIX=type40 CASE=type 35 41 OPTS='-t MULTI_SZ' 36 42 compareOneFile 37 43 38 PREFIX=security+type44 CASE=security+type 39 45 OPTS='-s -t KEY' 40 46 compareOneFile
Note: See TracChangeset
for help on using the changeset viewer.