summaryrefslogtreecommitdiff
path: root/gettext-tools/tests/msgcmp-1
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/tests/msgcmp-1')
-rwxr-xr-xgettext-tools/tests/msgcmp-122
1 files changed, 22 insertions, 0 deletions
diff --git a/gettext-tools/tests/msgcmp-1 b/gettext-tools/tests/msgcmp-1
new file mode 100755
index 0000000..17f70aa
--- /dev/null
+++ b/gettext-tools/tests/msgcmp-1
@@ -0,0 +1,22 @@
+#! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
+
+# Test a succeeding comparison.
+
+cat <<EOF > mc-test1.in1
+msgid "one" msgstr "first"
+msgid "two" msgstr "second"
+msgid "three" msgstr "third"
+EOF
+
+cat <<EOF > mc-test1.in2
+msgid "three" msgstr ""
+msgid "one" msgstr ""
+msgid "two" msgstr ""
+EOF
+
+: ${MSGCMP=msgcmp}
+${MSGCMP} mc-test1.in1 mc-test1.in2 > /dev/null 2>&1
+result=$?
+
+exit $result