2
# One argument is required which is the path to the toplevel directory
9
export LANGUAGE LC_ALL LC_MESSAGES LANG
11
tmpfiles="mc-test2.in1 mc-test2.in2"
12
cat <<EOF > mc-test2.in1
13
msgid "one" msgstr "first"
14
msgid "two" msgstr "second"
15
msgid "three" msgstr "third"
16
msgid "four" msgstr "fourth"
19
cat <<EOF > mc-test2.in2
20
msgid "thre" msgstr "" #i.e. pretend a typo in the program
25
tmpfiles="$tmpfiles mc-test2.out"
27
${MSGCMP} mc-test2.in1 mc-test2.in2 > mc-test2.out 2>&1
29
tmpfiles="$tmpfiles mc-test2.ok"
30
cat <<EOF > mc-test2.ok
31
mc-test2.in2:1: this message is used but not defined...
32
mc-test2.in1:3: ...but this definition is similar
33
mc-test2.in1:4: warning: this message is not used
38
${DIFF} mc-test2.ok mc-test2.out