3 # Test that we can retrieve the local username via the passwd file,
4 # the Signature profile entry, and via SIGNATURE environment variable.
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"
18 run_test "${MH_LIB_DIR}/ap -format %(myname) ignore" \
19 "`${MH_OBJ_DIR}/test/getfullname`" "GECOS field test"
21 echo "Signature: Some Random Name 1" >> ${MH}
23 run_test "${MH_LIB_DIR}/ap -format %(myname) ignore" \
24 "Some Random Name 1" "MH Profile Signature test"
26 export SIGNATURE="Some Random Name 2"
28 run_test "${MH_LIB_DIR}/ap -format %(myname) ignore" \
29 "${SIGNATURE}" "SIGNATURE Environment test"