X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/e107aac243dbd4021e57f4c455c7e3ffd82b819e..4d6cfbb1c9b425cb693e5189a19e132c67f5494a:/test/format/test-myname diff --git a/test/format/test-myname b/test/format/test-myname index 2cc3ce0e..dc86ea5e 100755 --- a/test/format/test-myname +++ b/test/format/test-myname @@ -15,24 +15,17 @@ setup_test unset SIGNATURE -runtest() -{ - testoutput=$(${MH_LIB_DIR}/ap -format "%(myname)" ignore) - - if [ x"$1" != x"${testoutput}" ]; then - echo "For $2, expected $1 but got ${testoutput}" - exit 1 - fi -} - -runtest "$(${MH_OBJ_DIR}/test/getfullname)" "GECOS field test" +run_test "${MH_LIB_DIR}/ap -format %(myname) ignore" \ + "`${MH_OBJ_DIR}/test/getfullname`" "GECOS field test" echo "Signature: Some Random Name 1" >> ${MH} -runtest "Some Random Name 1" "MH Profile Signature test" +run_test "${MH_LIB_DIR}/ap -format %(myname) ignore" \ + "Some Random Name 1" "MH Profile Signature test" export SIGNATURE="Some Random Name 2" -runtest "${SIGNATURE}" "SIGNATURE Environment test" +run_test "${MH_LIB_DIR}/ap -format %(myname) ignore" \ + "${SIGNATURE}" "SIGNATURE Environment test" -exit 0 +exit $failed