source: test/diff-reglookup @ 173

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
3mkdir -p tmp
4TMP_DIR=tmp
5OUTPUT_DIR=tmp
6
7OLD=reglookup
8NEW=../trunk/build/bin/reglookup
9
10
11compareOneFile()
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
22for 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
43rm $TMP_DIR/old.csv $TMP_DIR/new.csv
Note: See TracBrowser for help on using the repository browser.