+2001-11-07 Bruno Haible <haible@clisp.cons.org>
+
+ * Makefile.am (TESTS): Add msgcat-7.
+
+2001-11-07 Karl Eichwalder <keichwa@gmx.net>
+
+ * msgcat-7: New file.
+
2001-11-03 Bruno Haible <haible@clisp.cons.org>
* plural-1: Add option --no-location to xgettext call, no longer
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 \
--- /dev/null
+#! /bin/sh
+
+# Verify 'msgcat --sort-output'
+
+tmpfiles=""
+trap 'rm -fr $tmpfiles' 1 2 3 15
+
+tmpfiles="mcat-test7.in1"
+cat <<EOF > 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