Mercurial > libpst
comparison regression/regression-tests.bash @ 150:06aa84023b48
rename some structure fields to reflect our better understanding of the pst format
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 05 Mar 2009 08:23:32 -0800 |
parents | b47d04257b43 |
children | cda7c812ec01 |
comparison
equal
deleted
inserted
replaced
149:f9773b6368e0 | 150:06aa84023b48 |
---|---|
7 fn="$2" | 7 fn="$2" |
8 rm -rf output$n | 8 rm -rf output$n |
9 mkdir output$n | 9 mkdir output$n |
10 $val ../src/pst2dii -f /usr/share/fonts/bitstream-vera/VeraMono.ttf -B "bates-" -o output$n -O mydii$n -d dumper $fn >$fn.dii.err 2>&1 | 10 $val ../src/pst2dii -f /usr/share/fonts/bitstream-vera/VeraMono.ttf -B "bates-" -o output$n -O mydii$n -d dumper $fn >$fn.dii.err 2>&1 |
11 ../src/readpstlog -f I dumper >$fn.log | 11 ../src/readpstlog -f I dumper >$fn.log |
12 rm -f dumper | |
13 } | |
14 | |
15 | |
16 function doldif() | |
17 { | |
18 n="$1" | |
19 fn="$2" | |
20 echo $fn | |
21 ba=$(basename "$fn" .pst) | |
22 rm -rf output$n | |
23 mkdir output$n | |
24 #$val ../src/pst2ldif -d dumper -b 'o=ams-cc.com, c=US' -c 'newPerson' -o $fn >$ba.ldif.err 2>&1 | |
25 $val ../src/pst2ldif -d dumper -b 'o=ams-cc.com, c=US' -c 'inetOrgPerson' $fn >$ba.ldif.err 2>&1 | |
26 ../src/readpstlog -f I dumper >$ba.ldif.log | |
12 rm -f dumper | 27 rm -f dumper |
13 } | 28 } |
14 | 29 |
15 | 30 |
16 function dopst() | 31 function dopst() |
24 # ../src/readpst -cv -o output$n $fn >$ba.err 2>&1 | 39 # ../src/readpst -cv -o output$n $fn >$ba.err 2>&1 |
25 # readpst -cv -o output$n -d dumper $fn >$ba.err 2>&1 | 40 # readpst -cv -o output$n -d dumper $fn >$ba.err 2>&1 |
26 $val ../src/readpst -cv -o output$n -d dumper $fn >$ba.err 2>&1 | 41 $val ../src/readpst -cv -o output$n -d dumper $fn >$ba.err 2>&1 |
27 ../src/readpstlog -f I dumper >$ba.log | 42 ../src/readpstlog -f I dumper >$ba.log |
28 | 43 |
29 #$val ../src/pst2ldif -d dumper -b 'o=ams-cc.com, c=US' -c 'newPerson' -o $fn >$ba.ldif.err 2>&1 | |
30 #$val ../src/pst2ldif -d dumper -b 'o=ams-cc.com, c=US' -c 'inetOrgPerson' $fn >$ba.ldif.err 2>&1 | |
31 # ../src/readpstlog -f I dumper >$ba.ldif.log | |
32 | |
33 #../src/getidblock -d -p $fn 0 >$ba.fulldump | 44 #../src/getidblock -d -p $fn 0 >$ba.fulldump |
34 #../src/readpstlog -f I getidblock.log >$ba.fulldump.log | 45 #../src/readpstlog -f I getidblock.log >$ba.fulldump.log |
35 | 46 |
36 rm -f dumper | 47 rm -f dumper |
37 } | 48 } |
38 | 49 |
39 | 50 |
40 | 51 |
41 val="valgrind --leak-check=full" | 52 val="valgrind --leak-check=full" |
42 #val='' | 53 val='' |
43 | 54 |
44 pushd .. | 55 pushd .. |
45 make || exit | 56 make || exit |
46 popd | 57 popd |
47 | 58 |
48 if [ "$1" == "dii" ]; then | 59 if [ "$1" == "dii" ]; then |
49 dodii 1 ams.pst | 60 dodii 1 ams.pst |
50 dodii 2 sample_64.pst | 61 dodii 2 sample_64.pst |
51 dodii 3 test.pst | 62 dodii 3 test.pst |
52 dodii 4 big_mail.pst | 63 dodii 4 big_mail.pst |
64 elif [ "$1" == "ldif" ]; then | |
65 #doldif 1 ams.pst | |
66 #doldif 2 sample_64.pst | |
67 #doldif 3 test.pst | |
68 #doldif 4 big_mail.pst | |
69 #doldif 5 mbmg.archive.pst | |
70 #doldif 6 Single2003-read.pst | |
71 #doldif 7 Single2003-unread.pst | |
72 #doldif 8 ol2k3high.pst | |
73 #doldif 9 ol97high.pst | |
74 #doldif 10 returned_message.pst | |
75 #doldif 11 flow.pst | |
76 #doldif 12 test-html.pst | |
77 #doldif 13 test-text.pst | |
78 #doldif 14 joe.romanowski.pst | |
79 #doldif 15 hourig1.pst | |
80 #doldif 16 hourig2.pst | |
81 #doldif 17 hourig3.pst | |
82 #doldif 18 test-mac.pst | |
83 doldif 19 harris.pst | |
53 else | 84 else |
54 dopst 1 ams.pst | 85 dopst 1 ams.pst |
55 dopst 2 sample_64.pst | 86 dopst 2 sample_64.pst |
56 dopst 3 test.pst | 87 dopst 3 test.pst |
57 dopst 4 big_mail.pst | 88 dopst 4 big_mail.pst |
58 dopst 5 mbmg.archive.pst | 89 dopst 5 mbmg.archive.pst |
59 dopst 6 Single2003-read.pst | 90 dopst 6 Single2003-read.pst |
60 dopst 7 Single2003-unread.pst | 91 dopst 7 Single2003-unread.pst |
61 dopst 8 ol2k3high.pst | 92 dopst 8 ol2k3high.pst |
62 dopst 9 ol97high.pst | 93 dopst 9 ol97high.pst |
63 dopst 10 returned_message.pst | 94 dopst 10 returned_message.pst |
64 dopst 11 flow.pst | 95 dopst 11 flow.pst |
65 dopst 12 test-html.pst | 96 dopst 12 test-html.pst |
66 dopst 13 test-text.pst | 97 dopst 13 test-text.pst |
67 dopst 14 joe.romanowski.pst | 98 dopst 14 joe.romanowski.pst |
68 dopst 15 hourig1.pst | 99 dopst 15 hourig1.pst |
69 #dopst 16 hourig2.pst | 100 #dopst 16 hourig2.pst |
70 #dopst 17 hourig3.pst | 101 #dopst 17 hourig3.pst |
71 dopst 18 test-mac.pst | 102 dopst 18 test-mac.pst |
103 dopst 19 harris.pst | |
72 fi | 104 fi |
73 | 105 |
74 grep 'lost:' *err | grep -v 'lost: 0 ' | 106 grep 'lost:' *err | grep -v 'lost: 0 ' |