Imported Upstream version 0.18.3.2
[platform/upstream/gettext.git] / gettext-tools / tests / msgunfmt-csharp-1
index 8f94838..5061700 100755 (executable)
@@ -19,8 +19,10 @@ test "${TESTCSHARP}" = yes || {
   exit 77
 }
 
-tmpfiles="$tmpfiles fr.po"
-cat <<\EOF > fr.po
+tmpfiles="$tmpfiles mu-cs-1"
+test -d mu-cs-1 || mkdir mu-cs-1
+
+cat <<\EOF > mu-cs-1/fr.po
 msgid ""
 msgstr ""
 "Content-Type: text/plain; charset=ISO-8859-1\n"
@@ -51,23 +53,19 @@ msgid "Close"
 msgstr "Fermer"
 EOF
 
-tmpfiles="$tmpfiles fr/prog.resources.dll"
 : ${MSGFMT=msgfmt}
 GETTEXTCSHARPLIBDIR=../../gettext-runtime/intl-csharp \
-${MSGFMT} --csharp -d . -r prog -l fr fr.po || exit 1
+${MSGFMT} --csharp -d mu-cs-1 -r prog -l fr mu-cs-1/fr.po || exit 1
 
-tmpfiles="$tmpfiles prog.out"
 : ${MSGUNFMT=msgunfmt}
 GETTEXTCSHARPEXEDIR=../src \
 GETTEXTCSHARPLIBDIR=../../gettext-runtime/intl-csharp \
-${MSGUNFMT} --csharp -d . -r prog -l fr -o prog.out || exit 1
+${MSGUNFMT} --csharp -d mu-cs-1 -r prog -l fr -o mu-cs-1/prog.out || exit 1
 
-tmpfiles="$tmpfiles prog.sort"
 : ${MSGCAT=msgcat}
-${MSGCAT} -s -o prog.sort prog.out || exit 1
+${MSGCAT} -s -o mu-cs-1/prog.sort mu-cs-1/prog.out || exit 1
 
-tmpfiles="$tmpfiles prog.ok"
-cat <<\EOF > prog.ok
+cat <<\EOF > mu-cs-1/prog.ok
 msgid ""
 msgstr ""
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -92,7 +90,7 @@ msgid "{0} is replaced by {1}."
 msgstr "{1} remplace {0}."
 EOF
 : ${DIFF=diff}
-${DIFF} prog.ok prog.sort || exit 1
+${DIFF} mu-cs-1/prog.ok mu-cs-1/prog.sort || exit 1
 
 rm -fr $tmpfiles