Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / msgunfmt-properties-1
1 #! /bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4 # Test of general operation with Java .properties syntax.
5
6 cat <<EOF > mu-p-1.in
7 eight=eighth
8
9 five=fifth
10
11 four=fourth
12
13 one=first
14
15 seven=seventh
16
17 six=sixth
18
19 three=third
20
21 two=second
22 EOF
23
24 : ${MSGFMT=msgfmt}
25 ${MSGFMT} --properties-input -o mu-p-1.mo mu-p-1.in || exit 1
26
27 : ${MSGUNFMT=msgunfmt}
28 ${MSGUNFMT} --properties-output -o mu-p-1.tmp mu-p-1.mo || exit 1
29 LC_ALL=C tr -d '\r' < mu-p-1.tmp > mu-p-1.out || exit 1
30
31 : ${DIFF=diff}
32 ${DIFF} mu-p-1.in mu-p-1.out
33 result=$?
34
35 exit $result