view regression/regression-tests.bash @ 143:fdc58ad2c758 stable-0-6-28

fix embedded rfc822 messages with attachments
author Carl Byington <carl@five-ten-sg.com>
date Tue, 24 Feb 2009 12:33:49 -0800
parents 2189a6b8134e
children b47d04257b43
line wrap: on
line source

#!/bin/bash


function dodii()
{
    n="$1"
    fn="$2"
    rm -rf output$n
    mkdir output$n
    $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
         ../src/readpstlog -f I dumper >$fn.log
    rm -f dumper
}


function dopst()
{
    n="$1"
    fn="$2"
    echo $fn
    ba=$(basename "$fn" .pst)
    rm -rf output$n
    mkdir output$n
    #    ../src/readpst -cv -o output$n $fn >$ba.err 2>&1
    $val ../src/readpst -cv -o output$n -d dumper $fn >$ba.err 2>&1
    #           readpst -cv -o output$n -d dumper $fn >$ba.err 2>&1
         ../src/readpstlog -f I dumper >$ba.log
    #$val ../src/pst2ldif -d dumper -b 'o=ams-cc.com, c=US' -c 'newPerson' -o $fn >$ba.ldif.err 2>&1
    #$val ../src/pst2ldif -d dumper -b 'o=ams-cc.com, c=US' -c 'inetOrgPerson' $fn >$ba.ldif2.err 2>&1
    #     ../src/readpstlog -f I dumper >$ba.log
    rm -f dumper
}



val="valgrind --leak-check=full"
val=''

pushd ..
make || exit
popd

if [ "$1" == "dii" ]; then
    dodii 1 ams.pst
    dodii 2 sample_64.pst
    dodii 3 test.pst
    dodii 4 big_mail.pst
else
   dopst   1 ams.pst
   dopst   2 sample_64.pst
   dopst   3 test.pst
   dopst   4 big_mail.pst
   dopst   5 mbmg.archive.pst
   dopst   6 Single2003-read.pst
   dopst   7 Single2003-unread.pst
   dopst   8 ol2k3high.pst
   dopst   9 ol97high.pst
   dopst  10 returned_message.pst
   dopst  11 flow.pst
   dopst  12 test-html.pst
   dopst  13 test-text.pst
   dopst  14 joe.romanowski.pst
   dopst  15 hourig1.pst
   #dopst  16 hourig2.pst
   #dopst  17 hourig3.pst
   dopst  18 test-mac.pst
fi

grep 'lost:' *err | grep -v 'lost: 0 '