]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
New test from Karl Eichwalder.
authorBruno Haible <bruno@clisp.org>
Wed, 7 Nov 2001 16:32:52 +0000 (16:32 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 20:54:24 +0000 (22:54 +0200)
tests/ChangeLog
tests/Makefile.am
tests/msgcat-7 [new file with mode: 0755]

index 9074711779f27de17ece4be5d83860e297a2d960..667e0434be92ad926f1b37e99980c460848bdb6e 100644 (file)
@@ -1,3 +1,11 @@
+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
index fc263ebe7ba69c58391b7aab37161217f6ba47ee..3673641314adbb9e6d608e244b28a33da0e6850d 100644 (file)
@@ -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 (executable)
index 0000000..0d57634
--- /dev/null
@@ -0,0 +1,43 @@
+#! /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