-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"