Last change
on this file since 173 was
171,
checked in by tim, 15 years ago
|
minor escaping fix for a unicode decoding failure corner case
added initial version of a regression testing script
|
-
Property svn:executable set to
*
|
File size:
705 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | mkdir -p tmp |
---|
4 | TMP_DIR=tmp |
---|
5 | OUTPUT_DIR=tmp |
---|
6 | |
---|
7 | OLD=reglookup |
---|
8 | NEW=../trunk/build/bin/reglookup |
---|
9 | |
---|
10 | |
---|
11 | compareOneFile() |
---|
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` |
---|
17 | if [ "x$SIZE" = "x0" ]; then |
---|
18 | rm $OUTPUT_DIR/$PREFIX-${BNAME}.diff |
---|
19 | fi |
---|
20 | } |
---|
21 | |
---|
22 | for F in hives/*; do |
---|
23 | { |
---|
24 | BNAME=`basename $F` |
---|
25 | |
---|
26 | PREFIX=basic |
---|
27 | OPTS='' |
---|
28 | compareOneFile |
---|
29 | |
---|
30 | PREFIX=security |
---|
31 | OPTS='-s' |
---|
32 | compareOneFile |
---|
33 | |
---|
34 | PREFIX=type |
---|
35 | OPTS='-t MULTI_SZ' |
---|
36 | compareOneFile |
---|
37 | |
---|
38 | PREFIX=security+type |
---|
39 | OPTS='-s -t KEY' |
---|
40 | compareOneFile |
---|
41 | } done |
---|
42 | |
---|
43 | rm $TMP_DIR/old.csv $TMP_DIR/new.csv |
---|
Note: See
TracBrowser
for help on using the repository browser.