]>
diplodocus.org Git - nmh/blob - test/format/test-myhost
3 # Test that the %(myhost) function returns the local hostname and
4 # the localname entry out of the mts configuration file.
7 if test -z "${MH_OBJ_DIR}"; then
8 srcdir
=`dirname "$0"`/..
/..
9 MH_OBJ_DIR
=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
12 .
"$MH_OBJ_DIR/test/common.sh"
17 host=`${MH_OBJ_DIR}/test/getcanon`
19 run_test
"${MH_LIBEXEC_DIR}/ap -format %(myhost) ignore" "$host" \
22 cp ${MHMTSCONF} ${MH_TEST_DIR}/Mail
/mts.conf
|| exit 1
23 MHMTSCONF
="${MH_TEST_DIR}/Mail/mts.conf"
25 echo "localname: some.random.name" >> ${MHMTSCONF}
27 run_test
"${MH_LIBEXEC_DIR}/ap -format %(myhost) ignore" "some.random.name" \
28 "mts.conf localname test"