3 # This is a rudimentary tests to see if fetchmail can parse a trivial
4 # configuration and dump it in human-readable and machine-readable form.
9 dir=`(umask 077 && mktemp -d "$TMPDIR/t.smoke.XXXXXX")` 2>/dev/null \
12 dir=$TMPDIR/t.smoke.$$-$RANDOM
13 (umask 077 && mkdir "$dir")
15 trap 'r=$? ; rm -fr t.rc.$$ $dir ; exit $r' 0
16 cp "${srcdir}/t.rc" $dir/t.rc.$$
17 chmod 0400 $dir/t.rc.$$
20 export HOME FETCHMAILHOME
21 ./fetchmail -V -f $dir/t.rc.$$ >/dev/null
22 ./fetchmail --configdump -f $dir/t.rc.$$ >/dev/null