3 cd "`dirname \"$0\"`" &&
4 MAILCAPS="`pwd`"/.mailcap &&
13 ../mimedecode.py -H test -f utf-8 input/"$1" >tmp/"$1" || return 1
14 if cmp -s expected/"$2" tmp/"$1"; then
15 rm tmp/"$1" && return 0 || return 1
17 diff --text expected/"$2" tmp/"$1" >tmp/"$1".diff
24 if test1 "$1" "$2"; then
32 for f in input/*.txt; do
37 if [ "$RC" -eq 0 ]; then
38 echo "All tests passed!"