summaryrefslogtreecommitdiff
path: root/gettext-tools/tests/msguniq-7
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/tests/msguniq-7')
-rwxr-xr-xgettext-tools/tests/msguniq-730
1 files changed, 30 insertions, 0 deletions
diff --git a/gettext-tools/tests/msguniq-7 b/gettext-tools/tests/msguniq-7
new file mode 100755
index 0000000..5cae2e9
--- /dev/null
+++ b/gettext-tools/tests/msguniq-7
@@ -0,0 +1,30 @@
+#! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
+
+# Test --add-location=file option.
+
+cat <<\EOF > msguniq-7.in
+#: foo:1
+msgid "foo"
+msgstr ""
+
+#: bar:1
+msgid "foo"
+msgstr ""
+EOF
+
+: ${MSGUNIQ-msguniq}
+${MSGUNIQ} --add-location=file -o msguniq-7.tmp msguniq-7.in || exit 1
+LC_ALL=C tr -d '\r' < msguniq-7.tmp > msguniq-7.out || exit 1
+
+cat <<\EOF > msguniq-7.ok
+#: foo bar
+msgid "foo"
+msgstr ""
+EOF
+
+: ${DIFF=diff}
+${DIFF} msguniq-7.ok msguniq-7.out
+result=$?
+
+exit $result