From: Bruno Haible Date: Wed, 7 Nov 2001 16:32:52 +0000 (+0000) Subject: New test from Karl Eichwalder. X-Git-Tag: v0.11~321 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d12047fd9eeebcd4a831fa1cac8ea53fa2d7125;p=thirdparty%2Fgettext.git New test from Karl Eichwalder. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 907471177..667e0434b 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,11 @@ +2001-11-07 Bruno Haible + + * Makefile.am (TESTS): Add msgcat-7. + +2001-11-07 Karl Eichwalder + + * msgcat-7: New file. + 2001-11-03 Bruno Haible * plural-1: Add option --no-location to xgettext call, no longer diff --git a/tests/Makefile.am b/tests/Makefile.am index fc263ebe7..367364131 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -20,7 +20,7 @@ AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies TESTS = gettext-1 gettext-2 \ - msgcat-1 msgcat-2 msgcat-3 msgcat-4 msgcat-5 msgcat-6 \ + msgcat-1 msgcat-2 msgcat-3 msgcat-4 msgcat-5 msgcat-6 msgcat-7 \ msgcmp-1 msgcmp-2 \ msgcomm-1 msgcomm-2 msgcomm-3 msgcomm-4 msgcomm-5 msgcomm-6 msgcomm-7 \ msgcomm-8 msgcomm-9 msgcomm-10 msgcomm-11 msgcomm-12 msgcomm-13 \ diff --git a/tests/msgcat-7 b/tests/msgcat-7 new file mode 100755 index 000000000..0d5763400 --- /dev/null +++ b/tests/msgcat-7 @@ -0,0 +1,43 @@ +#! /bin/sh + +# Verify 'msgcat --sort-output' + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="mcat-test7.in1" +cat < mcat-test7.in1 +#: clients/inst_language.ycp:119 +msgid "two" +msgstr "2" + +#: clients/inst_language.ycp:108 +msgid "" +"one" +msgstr "" +"1" +EOF + +tmpfiles="$tmpfiles mcat-test7.out" +rm -f mcat-test7.out +: ${MSGCAT=msgcat} +${MSGCAT} mcat-test7.in1 --sort-output -o mcat-test7.out + +tmpfiles="$tmpfiles mcat-test7.ok" +cat << EOF > mcat-test7.ok +#: clients/inst_language.ycp:108 +msgid "one" +msgstr "1" + +#: clients/inst_language.ycp:119 +msgid "two" +msgstr "2" +EOF + +: ${DIFF=diff} +${DIFF} mcat-test7.ok mcat-test7.out +result=$? + +rm -fr $tmpfiles + +exit $result