Mercurial > libpst
comparison regression/regression-tests.bash @ 239:aa50c23a6935
patch from Lee Ayres to add file name extensions in separate mode; allow mixed items types in a folder in separate mode
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 14 Sep 2009 10:56:39 -0700 |
parents | 093e0e9248bb |
children | f2ae612fa62b 0f19cd173eab |
comparison
equal
deleted
inserted
replaced
238:410b6422d65b | 239:aa50c23a6935 |
---|---|
18 | 18 |
19 function dodii() | 19 function dodii() |
20 { | 20 { |
21 n="$1" | 21 n="$1" |
22 fn="$2" | 22 fn="$2" |
23 echo $fn | |
24 ba=$(basename "$fn" .pst) | 23 ba=$(basename "$fn" .pst) |
25 size=$(stat -c %s $fn) | 24 size=$(stat -c %s $fn) |
26 rm -rf output$n | 25 rm -rf output$n |
27 if [ -z "$val" ] || [ $size -lt 10000000 ]; then | 26 if [ -z "$val" ] || [ $size -lt 10000000 ]; then |
27 echo $fn | |
28 mkdir output$n | 28 mkdir output$n |
29 $val ../src/pst2dii -f /usr/share/fonts/bitstream-vera/VeraMono.ttf -B "bates-" -o output$n -O $ba.mydii -d $fn.log $fn >$fn.dii.err 2>&1 | 29 $val ../src/pst2dii -f /usr/share/fonts/bitstream-vera/VeraMono.ttf -B "bates-" -o output$n -O $ba.mydii -d $fn.log $fn >$fn.dii.err 2>&1 |
30 fi | 30 fi |
31 } | 31 } |
32 | 32 |
33 | 33 |
34 function doldif() | 34 function doldif() |
35 { | 35 { |
36 n="$1" | 36 n="$1" |
37 fn="$2" | 37 fn="$2" |
38 echo $fn | |
39 ba=$(basename "$fn" .pst) | 38 ba=$(basename "$fn" .pst) |
40 size=$(stat -c %s $fn) | 39 size=$(stat -c %s $fn) |
41 rm -rf output$n | 40 rm -rf output$n |
42 if [ -z "$val" ] || [ $size -lt 10000000 ]; then | 41 if [ -z "$val" ] || [ $size -lt 10000000 ]; then |
42 echo $fn | |
43 mkdir output$n | 43 mkdir output$n |
44 $val ../src/pst2ldif -d $ba.ldif.log -b 'o=ams-cc.com, c=US' -c 'inetOrgPerson' $fn >$ba.ldif.err 2>&1 | 44 $val ../src/pst2ldif -d $ba.ldif.log -b 'o=ams-cc.com, c=US' -c 'inetOrgPerson' $fn >$ba.ldif.err 2>&1 |
45 fi | 45 fi |
46 } | 46 } |
47 | 47 |
48 | 48 |
49 function dopst() | 49 function dopst() |
50 { | 50 { |
51 n="$1" | 51 n="$1" |
52 fn="$2" | 52 fn="$2" |
53 echo $fn | |
54 ba=$(basename "$fn" .pst) | 53 ba=$(basename "$fn" .pst) |
55 size=$(stat -c %s $fn) | 54 size=$(stat -c %s $fn) |
56 jobs="" | 55 jobs="" |
57 [ -n "$val" ] && jobs="-j 0" | 56 [ -n "$val" ] && jobs="-j 0" |
58 rm -rf output$n | 57 rm -rf output$n |
59 if [ -z "$val" ] || [ $size -lt 10000000 ]; then | 58 if [ -z "$val" ] || [ $size -lt 10000000 ]; then |
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 #val ../src/readpst $jobs -r -D -cv -o output$n $fn | 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 #$val ../src/readpst $jobs -r -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 | 66 |
67 ## normal recursive dump | |
68 #$val ../src/readpst $jobs -r -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 | |
69 | |
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 | |
72 | |
73 ## separate mode where we decode all attachments to binary files | |
74 #$val ../src/readpst $jobs -r -S -D -cv -o output$n -d $ba.log $fn >$ba.err 2>&1 | |
75 | |
76 ## testing idblock | |
67 #../src/getidblock -p $fn 0 >$ba.fulldump | 77 #../src/getidblock -p $fn 0 >$ba.fulldump |
68 fi | 78 fi |
69 fi | 79 fi |
70 } | 80 } |
71 | 81 |