2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test a failing comparison.
6 cat <<EOF > mc-test2.in1
7 msgid "one" msgstr "first"
8 msgid "two" msgstr "second"
9 msgid "three" msgstr "third"
10 msgid "four" msgstr "fourth"
13 cat <<EOF > mc-test2.in2
14 msgid "thre" msgstr "" #i.e. pretend a typo in the program
20 LC_MESSAGES=C LC_ALL= \
21 ${MSGCMP} mc-test2.in1 mc-test2.in2 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgcmp\.exe|msgcmp|' -e 's|^msgcmp\.exe|msgcmp|' | LC_ALL=C tr -d '\r' > mc-test2.out
23 cat <<EOF > mc-test2.ok
24 mc-test2.in2:1: this message is used but not defined...
25 mc-test2.in1:3: ...but this definition is similar
26 mc-test2.in1:4: warning: this message is not used
27 msgcmp: found 1 fatal error
31 ${DIFF} mc-test2.ok mc-test2.out