No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgen-2
blob634940f8d94f3bfb5cc1b507544b169451b7a1bf
1 #! /bin/sh
3 # Test general operation with Java .properties syntax.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles men-test2.properties"
9 cat <<\EOF > men-test2.properties
10 !height\ must\ be\ positive=
12 color\ cannot\ be\ transparent=colour cannot be transparent
14 width\ must\ be\ positive=
15 EOF
17 tmpfiles="$tmpfiles men-test2.out"
18 : ${MSGEN=msgen}
19 ${MSGEN} --properties-input --properties-output men-test2.properties -o men-test2.out
20 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
22 tmpfiles="$tmpfiles men-test2.ok"
23 cat <<\EOF > men-test2.ok
24 height\ must\ be\ positive=height must be positive
26 color\ cannot\ be\ transparent=colour cannot be transparent
28 width\ must\ be\ positive=width must be positive
29 EOF
31 : ${DIFF=diff}
32 ${DIFF} men-test2.ok men-test2.out
33 result=$?
35 rm -fr $tmpfiles
37 exit $result