Mercurial > libpst
annotate regression/regression-tests.bash @ 99:b7f456946c5b
add configure option --enable-dii=no to remove dependency on libgd.
many fixes in pst2ldif by Robert Harris.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 28 Sep 2008 17:08:52 -0700 |
parents | 997cf1373f9e |
children | 1e4a7610d525 |
rev | line source |
---|---|
35 | 1 #!/bin/bash |
2 | |
41
183ae993b9ad
security fix for potential buffer overrun in lz decompress
carl
parents:
36
diff
changeset
|
3 val="valgrind --leak-check=full" |
99
b7f456946c5b
add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents:
94
diff
changeset
|
4 #val='' |
41
183ae993b9ad
security fix for potential buffer overrun in lz decompress
carl
parents:
36
diff
changeset
|
5 |
93 | 6 pushd .. |
7 make || exit | |
8 popd | |
9 | |
10 for i in {1..13}; do | |
35 | 11 rm -rf output$i |
12 mkdir output$i | |
13 done | |
14 | |
71
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
15 if [ "$1" == "dii" ]; then |
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
16 hash=$(md5sum ams.pst) |
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
17 pre="$hash |
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
18 bates-" |
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
19 $val ../src/pst2dii -f /usr/share/fonts/bitstream-vera/VeraMono.ttf -B "$pre" -o output1 -O mydii -d dumper ams.pst |
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
20 ../src/readpstlog -f I dumper >ams.log |
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
21 $val ../src/pst2dii -f /usr/share/fonts/bitstream-vera/VeraMono.ttf -B "bates-" -o output2 -O mydii2 -d dumper sample_64.pst |
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
22 ../src/readpstlog -f I dumper >sample_64.log |
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
23 $val ../src/pst2dii -f /usr/share/fonts/bitstream-vera/VeraMono.ttf -B "bates-" -o output3 -O mydii3 -d dumper test.pst |
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
24 ../src/readpstlog -f I dumper >test.log |
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
25 ../src/pst2dii -f /usr/share/fonts/bitstream-vera/VeraMono.ttf -B "bates-" -o output4 -O mydii4 -d dumper big_mail.pst |
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
26 ../src/readpstlog -f I dumper >big_mail.log |
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
27 exit |
1bd4491cf8ff
fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents:
67
diff
changeset
|
28 fi |
44 | 29 |
49 | 30 $val ../src/pst2ldif -b 'o=ams-cc.com, c=US' -c 'newPerson' ams.pst >ams.err 2>&1 |
99
b7f456946c5b
add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents:
94
diff
changeset
|
31 exit |
94
997cf1373f9e
fix base64 encoding that could create long lines
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
32 |
997cf1373f9e
fix base64 encoding that could create long lines
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
33 $val ../src/readpst -cv -o output1 -d dumper ams.pst >out1.err 2>&1 |
997cf1373f9e
fix base64 encoding that could create long lines
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
34 ../src/readpstlog -f I dumper >ams1.log |
997cf1373f9e
fix base64 encoding that could create long lines
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
35 |
49 | 36 $val ../src/readpst -cl -r -o output2 ams.pst >out2.err 2>&1 |
37 $val ../src/readpst -S -o output3 ams.pst >out3.err 2>&1 | |
94
997cf1373f9e
fix base64 encoding that could create long lines
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
38 $val ../src/readpst -M -o output4 -d dumper ams.pst >out4.err 2>&1 |
93 | 39 ../src/readpstlog -f I dumper >ams.log |
48 | 40 |
49 | 41 $val ../src/readpst -o output5 -d dumper mbmg.archive.pst >out5.err 2>&1 |
42 ../src/readpstlog -f I dumper >mbmg.archive.log | |
46 | 43 |
49 | 44 $val ../src/readpst -o output6 -d dumper test.pst >out6.err 2>&1 |
63
cfd6175f9334
Start work on pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents:
60
diff
changeset
|
45 ../src/readpstlog -f I dumper >test.log |
49 | 46 |
47 $val ../src/readpst -cv -o output7 -d dumper sample_64.pst >out7.err 2>&1 | |
48 ../src/readpstlog -f I dumper >sample_64.log | |
43 | 49 |
94
997cf1373f9e
fix base64 encoding that could create long lines
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
50 #$val ../src/readpst -cv -o output8 -d dumper big_mail.pst >out8.err 2>&1 |
997cf1373f9e
fix base64 encoding that could create long lines
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
51 # ../src/readpstlog -f I dumper >big_mail.log |
43 | 52 |
60
97b7706bdda2
Work around bogus 7c.b5 blocks in some messages that have been read.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
53 $val ../src/readpst -cv -o output9 -d dumper Single2003-read.pst >out9.err 2>&1 |
97b7706bdda2
Work around bogus 7c.b5 blocks in some messages that have been read.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
54 ../src/readpstlog -f I dumper >Single2003-read.log |
97b7706bdda2
Work around bogus 7c.b5 blocks in some messages that have been read.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
55 |
97b7706bdda2
Work around bogus 7c.b5 blocks in some messages that have been read.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
56 $val ../src/readpst -cv -o output10 -d dumper Single2003-unread.pst >out10.err 2>&1 |
97b7706bdda2
Work around bogus 7c.b5 blocks in some messages that have been read.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
57 ../src/readpstlog -f I dumper >Single2003-unread.log |
97b7706bdda2
Work around bogus 7c.b5 blocks in some messages that have been read.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
58 |
79
56fa05fd5271
Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents:
71
diff
changeset
|
59 $val ../src/readpst -cv -o output11 -d dumper ol2k3high.pst >out11.err 2>&1 |
56fa05fd5271
Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents:
71
diff
changeset
|
60 ../src/readpstlog -f I dumper >ol2k3high.log |
56fa05fd5271
Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents:
71
diff
changeset
|
61 |
56fa05fd5271
Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents:
71
diff
changeset
|
62 $val ../src/readpst -cv -o output12 -d dumper ol97high.pst >out12.err 2>&1 |
56fa05fd5271
Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents:
71
diff
changeset
|
63 ../src/readpstlog -f I dumper >ol97high.log |
56fa05fd5271
Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents:
71
diff
changeset
|
64 |
93 | 65 $val ../src/readpst -cv -o output13 -d dumper returned_message.pst >out13.err 2>&1 |
66 ../src/readpstlog -f I dumper >returned_message.log | |
67 | |
68 $val ../src/lspst -d dumper ams.pst >out14.err 2>&1 | |
50 | 69 ../src/readpstlog -f I dumper >ams.log |
35 | 70 |
52 | 71 rm -f dumper |
48 | 72 |