Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / msgcmp-1
1 #! /bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4 # Test a succeeding comparison.
5
6 cat <<EOF > mc-test1.in1
7 msgid "one" msgstr "first"
8 msgid "two" msgstr "second"
9 msgid "three" msgstr "third"
10 EOF
11
12 cat <<EOF > mc-test1.in2
13 msgid "three" msgstr ""
14 msgid "one" msgstr ""
15 msgid "two" msgstr ""
16 EOF
17
18 : ${MSGCMP=msgcmp}
19 ${MSGCMP} mc-test1.in1 mc-test1.in2 > /dev/null 2>&1
20 result=$?
21
22 exit $result