]>
diplodocus.org Git - nmh/blob - test/format/test-myname
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 [ -z "${MH_TEST_COMMON}" ]; then
8 echo "MH_TEST_COMMON not set; try running via 'make check'"
19 testoutput
=$
(${MH_LIB_DIR}/ap
-format "%(myname)" ignore
)
21 if [ x
"$1" != x
"${testoutput}" ]; then
22 echo "For $2, expected $1 but got ${testoutput}"
27 runtest
"$(${MH_OBJ_DIR}/test/getfullname)" "GECOS field test"
29 echo "Signature: Some Random Name 1" >> ${MH}
31 runtest
"Some Random Name 1" "MH Profile Signature test"
33 export SIGNATURE
="Some Random Name 2"
35 runtest
"${SIGNATURE}" "SIGNATURE Environment test"