Mercurial > libpst
comparison regression/regression-tests.bash @ 258:8ad8fd1c5451
check return codes from forked processes
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 16 Apr 2011 10:09:28 -0700 |
parents | c947b8812120 |
children | 78e95fab9a8b |
comparison
equal
deleted
inserted
replaced
257:c947b8812120 | 258:8ad8fd1c5451 |
---|---|
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 rm -rf output$n | 57 rm -rf output$n |
58 if [ -z "$val" ] || [ $size -lt 10000000 ]; then | 58 if [ -z "$val" ] || [ $size -lt 100000000 ]; then |
59 echo $fn | 59 echo $fn |
60 mkdir output$n | 60 mkdir output$n |
61 if [ "$regression" == "yes" ]; then | 61 if [ "$regression" == "yes" ]; then |
62 $val ../src/readpst $jobs -te -r -cv -o output$n $fn >$ba.err 2>&1 | 62 $val ../src/readpst $jobs -te -r -cv -o output$n $fn >$ba.err 2>&1 |
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 #$val ../src/readpst $jobs -r -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 | 68 $val ../src/readpst $jobs -r -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 |
69 | 69 |
70 ## separate mode with filename extensions | 70 ## 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 | 71 #$val ../src/readpst $jobs -r -e -D -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 |
72 | 72 |
73 ## separate mode where we decode all attachments to binary files | 73 ## separate mode where we decode all attachments to binary files |
117 #$func 14 joe.romanowski.pst | 117 #$func 14 joe.romanowski.pst |
118 #$func 15 hourig1.pst | 118 #$func 15 hourig1.pst |
119 #$func 16 test-mac.pst | 119 #$func 16 test-mac.pst |
120 ##$func 17 harris.pst | 120 ##$func 17 harris.pst |
121 ##$func 18 spam.pst | 121 ##$func 18 spam.pst |
122 #$func 19 rendgen.pst # single email appointment | 122 #$func 19 rendgen.pst # single email appointment |
123 #$func 20 rendgen2.pst # email appointment with no termination date | 123 #$func 20 rendgen2.pst # email appointment with no termination date |
124 #$func 21 rendgen3.pst # mime signed email | 124 #$func 21 rendgen3.pst # mime signed email |
125 #$func 22 rendgen4.pst # appointment test cases | 125 #$func 22 rendgen4.pst # appointment test cases |
126 #$func 23 rendgen5.pst # appointment test cases | 126 #$func 23 rendgen5.pst # appointment test cases |
127 #$func 24 paul.sheer.pst # embedded rfc822 attachment | 127 #$func 24 paul.sheer.pst # embedded rfc822 attachment |
128 $func 25 jerry.pst # non ascii subject lines | 128 #$func 25 jerry.pst # non ascii subject lines |
129 $func 26 phill.bertolus.pst # | |
129 | 130 |
130 [ -n "$val" ] && grep 'lost:' *err | grep -v 'lost: 0 ' | 131 [ -n "$val" ] && grep 'lost:' *err | grep -v 'lost: 0 ' |
131 | 132 |
132 if [ "$regression" == "yes" ]; then | 133 if [ "$regression" == "yes" ]; then |
133 ( | 134 ( |