Home | History | Annotate | Line # | Download | only in tests
      1 #! /bin/sh
      2 
      3 # Test --use-first option with Java .properties syntax.
      4 
      5 tmpfiles=""
      6 trap 'rm -fr $tmpfiles' 1 2 3 15
      7 
      8 tmpfiles="$tmpfiles mcat-p-1.in1 mcat-p-1.in2"
      9 cat <<\EOF > mcat-p-1.in1
     10 #. Help text (HTML-like) START
     11 #: clients/inst_ask_config.ycp:119
     12 Congratulations\!=Gl\u00fcckwunsch\!
     13 EOF
     14 
     15 cat <<\EOF > mcat-p-1.in2
     16 #. Help text (HTML-like) START
     17 #: clients/inst_ask_config.ycp:119
     18 Congratulations\!=Herzlichen Gl\u00fcckwunsch\!
     19 EOF
     20 
     21 tmpfiles="$tmpfiles mcat-p-1.out"
     22 rm -f mcat-p-1.out
     23 
     24 : ${MSGCAT=msgcat}
     25 ${MSGCAT} --use-first --more-than=0 --properties-input --properties-output \
     26     -o mcat-p-1.out mcat-p-1.in1 mcat-p-1.in2
     27 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
     28 
     29 tmpfiles="$tmpfiles mcat-p-1.ok"
     30 cat << \EOF > mcat-p-1.ok
     31 #. Help text (HTML-like) START
     32 #: clients/inst_ask_config.ycp:119
     33 Congratulations\!=Gl\u00fcckwunsch\!
     34 EOF
     35 
     36 : ${DIFF=diff}
     37 ${DIFF} mcat-p-1.ok mcat-p-1.out
     38 result=$?
     39 
     40 rm -fr $tmpfiles
     41 
     42 exit $result
     43