Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / msgcomm-24
1 #! /bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4 # Test --more-than=0 option with Java .properties syntax.
5
6 cat <<EOF > mcomm-test24.in1
7 #: first.c:123
8 1=1x
9 EOF
10
11 cat <<EOF > mcomm-test24.in2
12 #: hunt.c:759
13 2=2x
14 EOF
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
18 LC_ALL=C tr -d '\r' < mcomm-test24.tmp > mcomm-test24.out || exit 1
19
20 cat << EOF > mcomm-test24.ok
21 #: first.c:123
22 1=1x
23
24 #: hunt.c:759
25 2=2x
26 EOF
27
28 : ${DIFF=diff}
29 ${DIFF} mcomm-test24.ok mcomm-test24.out
30 result=$?
31
32 exit $result