]> diplodocus.org Git - nmh/blobdiff - test/format/test-myname
Added showmimeproc to test/common.sh.in so that test-show will test
[nmh] / test / format / test-myname
index d9dca2dcc5676f16bc5f1f98e242b8fc2da9a68b..864f1bbd6a605a06c0179afa684a18c075e9425d 100755 (executable)
@@ -18,17 +18,18 @@ setup_test
 unset SIGNATURE
 
 fullname=`${MH_OBJ_DIR}/test/getfullname`
 unset SIGNATURE
 
 fullname=`${MH_OBJ_DIR}/test/getfullname`
-run_test "${MH_LIB_DIR}/ap -format %(myname) ignore" \
+run_test "${MH_LIBEXEC_DIR}/ap -format %(myname) ignore" \
          "$fullname" "GECOS field test"
 
 echo "Signature: Some Random Name 1" >> ${MH}
 
          "$fullname" "GECOS field test"
 
 echo "Signature: Some Random Name 1" >> ${MH}
 
-run_test "${MH_LIB_DIR}/ap -format %(myname) ignore" \
+run_test "${MH_LIBEXEC_DIR}/ap -format %(myname) ignore" \
          "Some Random Name 1" "MH Profile Signature test"
 
          "Some Random Name 1" "MH Profile Signature test"
 
-export SIGNATURE="Some Random Name 2"
+SIGNATURE="Some Random Name 2"
+export SIGNATURE
 
 
-run_test "${MH_LIB_DIR}/ap -format %(myname) ignore" \
+run_test "${MH_LIBEXEC_DIR}/ap -format %(myname) ignore" \
          "${SIGNATURE}" "SIGNATURE Environment test"
 
 #### Test escaping of display names.
          "${SIGNATURE}" "SIGNATURE Environment test"
 
 #### Test escaping of display names.
@@ -36,7 +37,10 @@ escape="${MH_OBJ_DIR}/test/getfullname"
 run_test "$escape "'user'           'user'              'no escape'
 run_test "$escape "'first.last'     '"first.last"'      'escape'
 run_test "$escape "'"first.last"'   '"first.last"'      'already escaped'
 run_test "$escape "'user'           'user'              'no escape'
 run_test "$escape "'first.last'     '"first.last"'      'escape'
 run_test "$escape "'"first.last"'   '"first.last"'      'already escaped'
+run_test "$escape "'first.last"'    '"first.last"'      'missing initial "'
+run_test "$escape "'"first.last'    '"first.last"'      'missing final "'
 run_test "$escape "'embedded"quote' '"embedded\"quote"' 'embedded quote'
 run_test "$escape "'embedded"quote' '"embedded\"quote"' 'embedded quote'
+run_test "$escape "'server\name,#'  '"server\name"'     'Windows form'
 run_test "$escape "'"'              '"\""'              'special "'
 run_test "$escape "'('              '"("'               'special ('
 run_test "$escape "')'              '")"'               'special )'
 run_test "$escape "'"'              '"\""'              'special "'
 run_test "$escape "'('              '"("'               'special ('
 run_test "$escape "')'              '")"'               'special )'