• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test a failing comparison with Java .properties syntax.
5
6cat <<EOF > mc-test3.in1
7one=first
8two=second
9three=third
10four=fourth
11EOF
12
13cat <<EOF > mc-test3.in2
14!thre=
15!one=
16!two=
17EOF
18
19: ${MSGCMP=msgcmp}
20LC_MESSAGES=C LC_ALL= \
21${MSGCMP} --properties-input mc-test3.in1 mc-test3.in2 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgcmp\.exe|msgcmp|' -e 's|^msgcmp\.exe|msgcmp|' -e 's|^/cygdrive/[^ ]*/msgcmp|msgcmp|' | LC_ALL=C tr -d '\r' > mc-test3.out
22
23cat <<EOF > mc-test3.ok
24mc-test3.in2:1: this message is used but not defined...
25mc-test3.in1:3: ...but this definition is similar
26mc-test3.in1:4: warning: this message is not used
27msgcmp: found 1 fatal error
28EOF
29
30: ${DIFF=diff}
31${DIFF} mc-test3.ok mc-test3.out
32result=$?
33
34exit $result
35