comparison regression/regression-tests.bash @ 313:0f19cd173eab

fix to/cc/bcc recipients in .msg file output format
author Carl Byington <carl@five-ten-sg.com>
date Mon, 24 May 2010 21:50:19 -0700
parents aa50c23a6935
children c4537664ff50
comparison
equal deleted inserted replaced
312:b7f79da5fd55 313:0f19cd173eab
52 fn="$2" 52 fn="$2"
53 ba=$(basename "$fn" .pst) 53 ba=$(basename "$fn" .pst)
54 size=$(stat -c %s $fn) 54 size=$(stat -c %s $fn)
55 jobs="" 55 jobs=""
56 [ -n "$val" ] && jobs="-j 0" 56 [ -n "$val" ] && jobs="-j 0"
57 jobs="-j 0"
57 rm -rf output$n 58 rm -rf output$n
58 if [ -z "$val" ] || [ $size -lt 10000000 ]; then 59 if [ -z "$val" ] || [ $size -lt 10000000 ]; then
59 echo $fn 60 echo $fn
60 mkdir output$n 61 mkdir output$n
61 if [ "$regression" == "yes" ]; then 62 if [ "$regression" == "yes" ]; then
66 67
67 ## normal recursive dump 68 ## normal recursive dump
68 #$val ../src/readpst $jobs -r -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 69 #$val ../src/readpst $jobs -r -cv -o output$n -d $ba.log $fn >$ba.err 2>&1
69 70
70 # separate mode with filename extensions 71 # separate mode with filename extensions
71 $val ../src/readpst $jobs -r -e -D -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 72 $val ../src/readpst $jobs -r -m -D -cv -o output$n -d $ba.log $fn >$ba.err 2>&1
72 73
73 ## separate mode where we decode all attachments to binary files 74 ## separate mode where we decode all attachments to binary files
74 #$val ../src/readpst $jobs -r -S -D -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 75 #$val ../src/readpst $jobs -r -S -D -cv -o output$n -d $ba.log $fn >$ba.err 2>&1
75 76
76 ## testing idblock 77 ## testing idblock
99 100
100 regression="" 101 regression=""
101 [ "$2" == "reg" ] && regression="yes" 102 [ "$2" == "reg" ] && regression="yes"
102 [ "$regression" == "yes" ] && val="" 103 [ "$regression" == "yes" ] && val=""
103 104
104 $func 1 ams.pst 105 #$func 1 mark.pst
105 $func 2 sample_64.pst 106 $func 2 mark-small.pst
106 $func 3 test.pst 107 #$func 9 ol97high.pst
107 $func 4 big_mail.pst
108 $func 5 mbmg.archive.pst
109 $func 6 Single2003-read.pst
110 $func 7 Single2003-unread.pst
111 $func 8 ol2k3high.pst
112 $func 9 ol97high.pst
113 $func 10 returned_message.pst
114 $func 11 flow.pst
115 $func 12 test-html.pst
116 $func 13 test-text.pst
117 $func 14 joe.romanowski.pst
118 $func 15 hourig1.pst
119 $func 16 test-mac.pst
120 $func 17 harris.pst
121 $func 18 spam.pst
122 $func 19 rendgen.pst # single email appointment
123 $func 20 rendgen2.pst # email appointment with no termination date
124 $func 21 rendgen3.pst # mime signed email
125 $func 22 rendgen4.pst # appointment test cases
126 $func 23 rendgen5.pst # appointment test cases
127 108
128 [ -n "$val" ] && grep 'lost:' *err | grep -v 'lost: 0 ' 109 [ -n "$val" ] && grep 'lost:' *err | grep -v 'lost: 0 '
129 110
130 if [ "$regression" == "yes" ]; then 111 if [ "$regression" == "yes" ]; then
131 ( 112 (