]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Test compendium option with a large compendium.
authorBruno Haible <bruno@clisp.org>
Mon, 13 Mar 2006 12:30:42 +0000 (12:30 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:01 +0000 (12:13 +0200)
gettext-tools/tests/msgmerge-compendium-5 [new file with mode: 0755]

diff --git a/gettext-tools/tests/msgmerge-compendium-5 b/gettext-tools/tests/msgmerge-compendium-5
new file mode 100755 (executable)
index 0000000..16f5fc4
--- /dev/null
@@ -0,0 +1,21 @@
+#! /bin/sh
+
+# Test compendium option with a large compendium.
+
+tmpfiles=""
+trap 'rm -fr $tmpfiles' 1 2 3 15
+
+tmpfiles="$tmpfiles mm-c-5.out"
+: ${MSGMERGE=msgmerge}
+${MSGMERGE} -q -o mm-c-5.out \
+  --compendium ${top_srcdir}/tests/msgmerge-v.comp.po \
+  /dev/null ${top_srcdir}/tests/msgmerge-v.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+
+: ${DIFF=diff}
+${DIFF} ${top_srcdir}/tests/msgmerge-v.out mm-c-5.out
+result=$?
+
+rm -fr $tmpfiles
+
+exit $result