comparison regression/regression-tests.bash @ 345:a8577226f7a9

fixes from AJ Shankar for attachment processing and body encodings that contain embedded null chars
author Carl Byington <carl@five-ten-sg.com>
date Mon, 09 Mar 2015 10:47:58 -0700
parents aedcf979f439
children a2da2bbe393a
comparison
equal deleted inserted replaced
344:aedcf979f439 345:a8577226f7a9
63 else 63 else
64 ## only email and include deleted items, have a deleted items folder with multiple item types 64 ## only email and include deleted items, have a deleted items folder with multiple item types
65 #$val ../src/readpst $jobs -te -r -D -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 65 #$val ../src/readpst $jobs -te -r -D -cv -o output$n -d $ba.log $fn >$ba.err 2>&1
66 66
67 ## normal recursive dump 67 ## normal recursive dump
68 char='BIG-5'
68 char='us-ascii' 69 char='us-ascii'
69 acc="-a '.xls,.doc'" 70 acc="-a '.xls,.doc'"
70 acc='' 71 acc=''
71 #char='BIG-5' 72 utf='-8'
72 echo $val ../src/readpst $acc -C $char -j 0 -r -cv -o output$n -d $ba.log $fn 73 echo $val ../src/readpst $utf $acc -C $char -j 0 -r -cv -o output$n -d $ba.log $fn
73 $val ../src/readpst $acc -C $char -j 0 -r -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 74 $val ../src/readpst $utf $acc -C $char -j 0 -r -cv -o output$n -d $ba.log $fn >$ba.err 2>&1
74 75
75 ## separate mode with filename extensions and .msg files 76 ## separate mode with filename extensions and .msg files
76 #echo $val ../src/readpst $jobs -r -m -D -cv -o output$n -d $ba.log $fn 77 #echo $val ../src/readpst $jobs -r -m -D -cv -o output$n -d $ba.log $fn
77 # $val ../src/readpst $jobs -r -m -D -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 78 # $val ../src/readpst $jobs -r -m -D -cv -o output$n -d $ba.log $fn >$ba.err 2>&1
78 79
106 107
107 regression="" 108 regression=""
108 [ "$2" == "reg" ] && regression="yes" 109 [ "$2" == "reg" ] && regression="yes"
109 [ "$regression" == "yes" ] && val="" 110 [ "$regression" == "yes" ] && val=""
110 111
111 #$func 1 ams.pst 112 $func 1 ams.pst
112 #$func 2 sample_64.pst 113 $func 2 sample_64.pst
113 #$func 3 test.pst 114 $func 3 test.pst
114 #$func 4 big_mail.pst 115 $func 4 big_mail.pst
115 $func 5 mbmg.archive.pst 116 $func 5 mbmg.archive.pst
116 #$func 6 Single2003-read.pst 117 $func 6 Single2003-read.pst
117 #$func 7 Single2003-unread.pst 118 $func 7 Single2003-unread.pst
118 #$func 8 ol2k3high.pst 119 $func 8 ol2k3high.pst
119 #$func 9 ol97high.pst 120 $func 9 ol97high.pst
120 #$func 10 returned_message.pst 121 $func 10 returned_message.pst
121 #$func 11 flow.pst 122 $func 11 flow.pst
122 #$func 12 test-html.pst 123 $func 12 test-html.pst
123 #$func 13 test-text.pst 124 $func 13 test-text.pst
124 #$func 14 joe.romanowski.pst 125 $func 14 joe.romanowski.pst
125 #$func 15 hourig1.pst 126 $func 15 hourig1.pst
126 #$func 16 test-mac.pst 127 $func 16 test-mac.pst
127 #$func 18 spam.pst 128 $func 18 spam.pst
128 #$func 19 rendgen.pst # single email appointment 129 $func 19 rendgen.pst # single email appointment
129 #$func 20 rendgen2.pst # email appointment with no termination date 130 $func 20 rendgen2.pst # email appointment with no termination date
130 #$func 21 rendgen3.pst # mime signed email 131 $func 21 rendgen3.pst # mime signed email
131 #$func 22 rendgen4.pst # appointment test cases 132 $func 22 rendgen4.pst # appointment test cases
132 #$func 23 rendgen5.pst # appointment test cases 133 $func 23 rendgen5.pst # appointment test cases
133 #$func 24 paul.sheer.pst # embedded rfc822 attachment 134 $func 24 paul.sheer.pst # embedded rfc822 attachment
134 #$func 25 jerry.pst # non ascii subject lines 135 $func 25 jerry.pst # non ascii subject lines
135 #$func 26 phill.bertolus.pst # possible segfault in forked process, cannot reproduce 136 $func 26 phill.bertolus.pst # possible segfault in forked process, cannot reproduce
136 #$func 27 kaiser.pst # appointments with other character sets 137 $func 27 kaiser.pst # appointments with other character sets
137 #$func 28 pstsample.pst # character set issue 138 $func 28 pstsample.pst # character set issue
138 #$func 29 pstsample2.pst # embedded image in rtf data 139 $func 29 pstsample2.pst # embedded image in rtf data
139 #$func 30 pstsample3.pst # exports of rtf and html 140 $func 30 pstsample3.pst # exports of rtf and html
140 #$func 31 Journal_Archives_08_29_2010.pst 141 $func 31 Journal_Archives_08_29_2010.pst
141 142
142 [ -n "$val" ] && grep 'lost:' *err | grep -v 'lost: 0 ' 143 [ -n "$val" ] && grep 'lost:' *err | grep -v 'lost: 0 '
143 144
144 if [ "$regression" == "yes" ]; then 145 if [ "$regression" == "yes" ]; then
145 ( 146 (