• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test --more-than=0 option with Java .properties syntax.
5
6cat <<EOF > mcomm-test24.in1
7#: first.c:123
81=1x
9EOF
10
11cat <<EOF > mcomm-test24.in2
12#: hunt.c:759
132=2x
14EOF
15
16: ${MSGCOMM=msgcomm}
17${MSGCOMM} --more-than=0 --properties-input --properties-output -o mcomm-test24.tmp mcomm-test24.in1 mcomm-test24.in2 || Exit 1
18LC_ALL=C tr -d '\r' < mcomm-test24.tmp > mcomm-test24.out || Exit 1
19
20cat << EOF > mcomm-test24.ok
21#: first.c:123
221=1x
23
24#: hunt.c:759
252=2x
26EOF
27
28: ${DIFF=diff}
29${DIFF} mcomm-test24.ok mcomm-test24.out
30result=$?
31
32exit $result
33