Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / msgen-2
1 #! /bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4 # Test general operation with Java .properties syntax.
5
6 cat <<\EOF > men-test2.properties
7 !height\ must\ be\ positive=
8
9 color\ cannot\ be\ transparent=colour cannot be transparent
10
11 width\ must\ be\ positive=
12 EOF
13
14 : ${MSGEN=msgen}
15 ${MSGEN} --properties-input --properties-output -o men-test2.tmp men-test2.properties || exit 1
16 LC_ALL=C tr -d '\r' < men-test2.tmp > men-test2.out || exit 1
17
18 cat <<\EOF > men-test2.ok
19 height\ must\ be\ positive=height must be positive
20
21 color\ cannot\ be\ transparent=colour cannot be transparent
22
23 width\ must\ be\ positive=width must be positive
24 EOF
25
26 : ${DIFF=diff}
27 ${DIFF} men-test2.ok men-test2.out
28 result=$?
29
30 exit $result