Mercurial > libpst
comparison regression/regression-tests.bash @ 100:1e4a7610d525
fixes from Justin Greer to add -D option to include deleted items, to add missing email headers, to fix bug in my_stristr()
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 02 Oct 2008 15:29:36 -0700 |
parents | b7f456946c5b |
children | 1fc33da23175 |
comparison
equal
deleted
inserted
replaced
99:b7f456946c5b | 100:1e4a7610d525 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 | |
4 function dodii() | |
5 { | |
6 n="$1" | |
7 fn="$2" | |
8 rm -rf 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 | |
11 ../src/readpstlog -f I dumper >$fn.log | |
12 rm -f dumper | |
13 } | |
14 | |
15 | |
16 function dopst() | |
17 { | |
18 n="$1" | |
19 fn="$2" | |
20 rm -rf output$n | |
21 mkdir output$n | |
22 $val ../src/readpst -cv -o output$n -d dumper $fn >$fn.pst.err 2>&1 | |
23 ../src/readpstlog -f I dumper >$fn.log | |
24 $val ../src/pst2ldif -b 'o=ams-cc.com, c=US' -c 'newPerson' $fn >$fn.ldif.err 2>&1 | |
25 rm -f dumper | |
26 } | |
27 | |
28 | |
29 | |
3 val="valgrind --leak-check=full" | 30 val="valgrind --leak-check=full" |
4 #val='' | 31 val='' |
5 | 32 |
6 pushd .. | 33 pushd .. |
7 make || exit | 34 make || exit |
8 popd | 35 popd |
9 | 36 |
10 for i in {1..13}; do | |
11 rm -rf output$i | |
12 mkdir output$i | |
13 done | |
14 | |
15 if [ "$1" == "dii" ]; then | 37 if [ "$1" == "dii" ]; then |
16 hash=$(md5sum ams.pst) | 38 dodii 1 ams.pst |
17 pre="$hash | 39 dodii 2 sample_64.pst |
18 bates-" | 40 dodii 3 test.pst |
19 $val ../src/pst2dii -f /usr/share/fonts/bitstream-vera/VeraMono.ttf -B "$pre" -o output1 -O mydii -d dumper ams.pst | 41 dodii 4 big_mail.pst |
20 ../src/readpstlog -f I dumper >ams.log | 42 else |
21 $val ../src/pst2dii -f /usr/share/fonts/bitstream-vera/VeraMono.ttf -B "bates-" -o output2 -O mydii2 -d dumper sample_64.pst | 43 dopst 1 ams.pst |
22 ../src/readpstlog -f I dumper >sample_64.log | 44 dopst 2 sample_64.pst |
23 $val ../src/pst2dii -f /usr/share/fonts/bitstream-vera/VeraMono.ttf -B "bates-" -o output3 -O mydii3 -d dumper test.pst | 45 dopst 3 test.pst |
24 ../src/readpstlog -f I dumper >test.log | 46 dopst 4 big_mail.pst |
25 ../src/pst2dii -f /usr/share/fonts/bitstream-vera/VeraMono.ttf -B "bates-" -o output4 -O mydii4 -d dumper big_mail.pst | 47 dopst 5 mbmg.archive.pst |
26 ../src/readpstlog -f I dumper >big_mail.log | 48 dopst 6 Single2003-read.pst |
27 exit | 49 dopst 7 Single2003-unread.pst |
50 dopst 8 ol2k3high.pst | |
51 dopst 9 ol97high.pst | |
52 dopst 10 returned_message.pst | |
28 fi | 53 fi |
29 | 54 |
30 $val ../src/pst2ldif -b 'o=ams-cc.com, c=US' -c 'newPerson' ams.pst >ams.err 2>&1 | |
31 exit | |
32 | |
33 $val ../src/readpst -cv -o output1 -d dumper ams.pst >out1.err 2>&1 | |
34 ../src/readpstlog -f I dumper >ams1.log | |
35 | |
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 | |
38 $val ../src/readpst -M -o output4 -d dumper ams.pst >out4.err 2>&1 | |
39 ../src/readpstlog -f I dumper >ams.log | |
40 | |
41 $val ../src/readpst -o output5 -d dumper mbmg.archive.pst >out5.err 2>&1 | |
42 ../src/readpstlog -f I dumper >mbmg.archive.log | |
43 | |
44 $val ../src/readpst -o output6 -d dumper test.pst >out6.err 2>&1 | |
45 ../src/readpstlog -f I dumper >test.log | |
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 | |
49 | |
50 #$val ../src/readpst -cv -o output8 -d dumper big_mail.pst >out8.err 2>&1 | |
51 # ../src/readpstlog -f I dumper >big_mail.log | |
52 | |
53 $val ../src/readpst -cv -o output9 -d dumper Single2003-read.pst >out9.err 2>&1 | |
54 ../src/readpstlog -f I dumper >Single2003-read.log | |
55 | |
56 $val ../src/readpst -cv -o output10 -d dumper Single2003-unread.pst >out10.err 2>&1 | |
57 ../src/readpstlog -f I dumper >Single2003-unread.log | |
58 | |
59 $val ../src/readpst -cv -o output11 -d dumper ol2k3high.pst >out11.err 2>&1 | |
60 ../src/readpstlog -f I dumper >ol2k3high.log | |
61 | |
62 $val ../src/readpst -cv -o output12 -d dumper ol97high.pst >out12.err 2>&1 | |
63 ../src/readpstlog -f I dumper >ol97high.log | |
64 | |
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 | |
69 ../src/readpstlog -f I dumper >ams.log | |
70 | |
71 rm -f dumper | |
72 |