No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgcmp-3
blob00dfedb739b128e9ffa728424ba3adcd60123a51
1 #! /bin/sh
3 # Test a failing comparison with Java .properties syntax.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mc-test3.in1 mc-test3.in2"
9 cat <<EOF > mc-test3.in1
10 one=first
11 two=second
12 three=third
13 four=fourth
14 EOF
16 cat <<EOF > mc-test3.in2
17 !thre=
18 !one=
19 !two=
20 EOF
22 tmpfiles="$tmpfiles mc-test3.out"
23 : ${MSGCMP=msgcmp}
24 LC_MESSAGES=C LC_ALL= \
25 ${MSGCMP} --properties-input mc-test3.in1 mc-test3.in2 2>&1 | grep -v '^==' > mc-test3.out
27 tmpfiles="$tmpfiles mc-test3.ok"
28 cat <<EOF > mc-test3.ok
29 mc-test3.in2:1: this message is used but not defined...
30 mc-test3.in1:3: ...but this definition is similar
31 mc-test3.in1:4: warning: this message is not used
32 msgcmp: found 1 fatal error
33 EOF
35 : ${DIFF=diff}
36 ${DIFF} mc-test3.ok mc-test3.out
37 result=$?
39 rm -fr $tmpfiles
41 exit $result