Home | History | Annotate | Line # | Download | only in tests
      1 #! /bin/sh
      2 
      3 # Test of general operation with Java .properties syntax.
      4 
      5 tmpfiles=""
      6 trap 'rm -fr $tmpfiles' 1 2 3 15
      7 
      8 tmpfiles="$tmpfiles mu-p-1.in"
      9 cat <<EOF > mu-p-1.in
     10 eight=eighth
     11 
     12 five=fifth
     13 
     14 four=fourth
     15 
     16 one=first
     17 
     18 seven=seventh
     19 
     20 six=sixth
     21 
     22 three=third
     23 
     24 two=second
     25 EOF
     26 
     27 tmpfiles="$tmpfiles mu-p-1.mo"
     28 : ${MSGFMT=msgfmt}
     29 ${MSGFMT} --properties-input -o mu-p-1.mo mu-p-1.in
     30 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
     31 
     32 tmpfiles="$tmpfiles mu-p-1.out"
     33 : ${MSGUNFMT=msgunfmt}
     34 ${MSGUNFMT} --properties-output -o mu-p-1.out mu-p-1.mo
     35 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
     36 
     37 : ${DIFF=diff}
     38 ${DIFF} mu-p-1.in mu-p-1.out
     39 result=$?
     40 
     41 rm -fr $tmpfiles
     42 
     43 exit $result
     44