]> Pileus Git - ~andy/fetchmail/blob - t.smoke
Update <sq> Albanian translation to fetchmail-6.4.3-rc2
[~andy/fetchmail] / t.smoke
1 #! /bin/sh
2
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.
5
6 set -eu
7 : "${TMPDIR:=/tmp}"
8 {
9         dir=`(umask 077 && mktemp -d "$TMPDIR/t.smoke.XXXXXX")` 2>/dev/null \
10                 && test -d "$dir"
11 } || {
12         dir=$TMPDIR/t.smoke.$$-$RANDOM
13                 (umask 077 && mkdir "$dir")
14 }
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.$$
18 HOME=$dir
19 FETCHMAILHOME=$dir
20 export HOME FETCHMAILHOME
21 ./fetchmail -V -f $dir/t.rc.$$ >/dev/null
22 ./fetchmail --configdump -f $dir/t.rc.$$ >/dev/null