X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fgettext.git;a=blobdiff_plain;f=gettext-tools%2Ftests%2Fmsgunfmt-csharp-1;h=5061700d6d46456cf51341219579ddeac9981ec4;hp=8f948388d320aa61efd799daa8e9b9471cc452ac;hb=5d61132f836323aaf2879e04abc9d4056db248a2;hpb=90a3363ce7c017439e9953fd5e832fbef8db0dd5 diff --git a/gettext-tools/tests/msgunfmt-csharp-1 b/gettext-tools/tests/msgunfmt-csharp-1 index 8f94838..5061700 100755 --- a/gettext-tools/tests/msgunfmt-csharp-1 +++ b/gettext-tools/tests/msgunfmt-csharp-1 @@ -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