annotate regression/regression-tests.bash @ 75:987aa872294e stable-0-6-11

Use ftello/fseeko to properly handle large files. Document and properly use datasize field in b5 blocks. Fix some MSVC compile issues and collect MSVC dependencies into one place.
author Carl Byington <carl@five-ten-sg.com>
date Tue, 03 Jun 2008 12:00:58 -0700
parents 1bd4491cf8ff
children 56fa05fd5271
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
35
b2f247463b83 better decoding of 7c blocks
carl
parents:
diff changeset
1 #!/bin/bash
b2f247463b83 better decoding of 7c blocks
carl
parents:
diff changeset
2
41
183ae993b9ad security fix for potential buffer overrun in lz decompress
carl
parents: 36
diff changeset
3 val="valgrind --leak-check=full"
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
4 val=''
41
183ae993b9ad security fix for potential buffer overrun in lz decompress
carl
parents: 36
diff changeset
5
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
6 for i in {1..10}; do
35
b2f247463b83 better decoding of 7c blocks
carl
parents:
diff changeset
7 rm -rf output$i
b2f247463b83 better decoding of 7c blocks
carl
parents:
diff changeset
8 mkdir output$i
b2f247463b83 better decoding of 7c blocks
carl
parents:
diff changeset
9 done
b2f247463b83 better decoding of 7c blocks
carl
parents:
diff changeset
10
71
1bd4491cf8ff fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents: 67
diff changeset
11 if [ "$1" == "dii" ]; then
1bd4491cf8ff fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents: 67
diff changeset
12 hash=$(md5sum ams.pst)
1bd4491cf8ff fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents: 67
diff changeset
13 pre="$hash
1bd4491cf8ff fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents: 67
diff changeset
14 bates-"
1bd4491cf8ff fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents: 67
diff changeset
15 $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
16 ../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
17 $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
18 ../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
19 $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
20 ../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
21 ../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
22 ../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
23 exit
1bd4491cf8ff fix documentation of 8 byte backpointers
Carl Byington <carl@five-ten-sg.com>
parents: 67
diff changeset
24 fi
44
d4606d460daf more fixes for 64 bit format
carl
parents: 43
diff changeset
25
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
26 $val ../src/pst2ldif -b 'o=ams-cc.com, c=US' -c 'newPerson' ams.pst >ams.err 2>&1
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
27 $val ../src/readpst -cv -o output1 ams.pst >out1.err 2>&1
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
28 $val ../src/readpst -cl -r -o output2 ams.pst >out2.err 2>&1
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
29 $val ../src/readpst -S -o output3 ams.pst >out3.err 2>&1
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
30 $val ../src/readpst -M -o output4 ams.pst >out4.err 2>&1
48
f66078abed38 more fixes for 64 bit format
carl
parents: 46
diff changeset
31
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
32 $val ../src/readpst -o output5 -d dumper mbmg.archive.pst >out5.err 2>&1
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
33 ../src/readpstlog -f I dumper >mbmg.archive.log
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
34
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
35 $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
36 ../src/readpstlog -f I dumper >test.log
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
37
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
38 $val ../src/readpst -cv -o output7 -d dumper sample_64.pst >out7.err 2>&1
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
39 ../src/readpstlog -f I dumper >sample_64.log
43
f6db1f060a95 start on outlook 2003 64 bit format
carl
parents: 41
diff changeset
40
48
f66078abed38 more fixes for 64 bit format
carl
parents: 46
diff changeset
41 $val ../src/readpst -cv -o output8 -d dumper big_mail.pst >out8.err 2>&1
f66078abed38 more fixes for 64 bit format
carl
parents: 46
diff changeset
42 ../src/readpstlog -f I dumper >big_mail.log
43
f6db1f060a95 start on outlook 2003 64 bit format
carl
parents: 41
diff changeset
43
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
44 $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
45 ../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
46
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
47 $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
48 ../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
49
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
50 $val ../src/lspst -d dumper ams.pst >out11.err 2>&1
50
fb3818370dd6 more fixes for 64 bit format
carl
parents: 49
diff changeset
51 ../src/readpstlog -f I dumper >ams.log
35
b2f247463b83 better decoding of 7c blocks
carl
parents:
diff changeset
52
52
034641c26ab9 code cleanup
carl
parents: 50
diff changeset
53 rm -f dumper
48
f66078abed38 more fixes for 64 bit format
carl
parents: 46
diff changeset
54