Home | History | Annotate | Line # | Download | only in tests
      1  1.1  christos #! /bin/sh
      2  1.1  christos 
      3  1.1  christos # Verify msgcat of two files, when the header entries have different comments
      4  1.1  christos # and different contents. The resulting header entry must be marked fuzzy.
      5  1.1  christos 
      6  1.1  christos tmpfiles=""
      7  1.1  christos trap 'rm -fr $tmpfiles' 1 2 3 15
      8  1.1  christos 
      9  1.1  christos tmpfiles="$tmpfiles mcat-test8.in1 mcat-test8.in2"
     10  1.1  christos cat <<\EOF > mcat-test8.in1
     11  1.1  christos # German message file for xyz.
     12  1.1  christos # Copyright (C) 1999, 2000, 2001 xyz.
     13  1.1  christos # Kab Def <ke (at] zzz.uucp>, 2000.
     14  1.1  christos # Def Kab <dk (at] zzz.uucp>, 2001.
     15  1.1  christos #
     16  1.1  christos msgid ""
     17  1.1  christos msgstr ""
     18  1.1  christos "Project-Id-Version: xyz\n"
     19  1.1  christos "POT-Creation-Date: 2001-11-11 12:51:34+0200\n"
     20  1.1  christos "PO-Revision-Date: 2001-11-11 13:02+02:00\n"
     21  1.1  christos "Last-Translator: Kab Def <ke (at] zzz.uucp>\n"
     22  1.1  christos "Language-Team: German <i18n (at] zzz.uucp>\n"
     23  1.1  christos "MIME-Version: 1.0\n"
     24  1.1  christos "Content-Type: text/plain; charset=ISO-8859-1\n"
     25  1.1  christos "Content-Transfer-Encoding: 8bit\n"
     26  1.1  christos 
     27  1.1  christos #. Help text (HTML-like) START
     28  1.1  christos #: clients/inst_ask_config.ycp:119
     29  1.1  christos msgid ""
     30  1.1  christos "Congratulations!"
     31  1.1  christos msgstr ""
     32  1.1  christos "Glckwunsch!"
     33  1.1  christos EOF
     34  1.1  christos 
     35  1.1  christos cat <<\EOF > mcat-test8.in2
     36  1.1  christos # German message file for xyz.
     37  1.1  christos # Copyright (C) 1999, 2000, 2001 xyz.
     38  1.1  christos # Kab Def <ke (at] zzz.uucp>, 2000.
     39  1.1  christos #
     40  1.1  christos msgid ""
     41  1.1  christos msgstr ""
     42  1.1  christos "Project-Id-Version: xyz\n"
     43  1.1  christos "POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
     44  1.1  christos "PO-Revision-Date: 2001-04-24 13:02+02:00\n"
     45  1.1  christos "Last-Translator: Kab Def <ke (at] zzz.uucp>\n"
     46  1.1  christos "Language-Team: German <i18n (at] zzz.uucp>\n"
     47  1.1  christos "MIME-Version: 1.0\n"
     48  1.1  christos "Content-Type: text/plain; charset=ISO-8859-1\n"
     49  1.1  christos "Content-Transfer-Encoding: 8bit\n"
     50  1.1  christos 
     51  1.1  christos #. Help text (HTML-like) START
     52  1.1  christos #: clients/inst_ask_config.ycp:119
     53  1.1  christos msgid ""
     54  1.1  christos "Congratulations!"
     55  1.1  christos msgstr ""
     56  1.1  christos "Glckwunsch!"
     57  1.1  christos EOF
     58  1.1  christos 
     59  1.1  christos tmpfiles="$tmpfiles mcat-test8.out"
     60  1.1  christos rm -f mcat-test8.out
     61  1.1  christos 
     62  1.1  christos : ${MSGCAT=msgcat}
     63  1.1  christos ${MSGCAT} --more-than=0 -o mcat-test8.out \
     64  1.1  christos     mcat-test8.in1 mcat-test8.in2
     65  1.1  christos test $? = 0 || { rm -fr $tmpfiles; exit 1; }
     66  1.1  christos 
     67  1.1  christos tmpfiles="$tmpfiles mcat-test8.ok"
     68  1.1  christos cat <<\EOF > mcat-test8.ok
     69  1.1  christos # #-#-#-#-#  mcat-test8.in1 (xyz)  #-#-#-#-#
     70  1.1  christos # German message file for xyz.
     71  1.1  christos # Copyright (C) 1999, 2000, 2001 xyz.
     72  1.1  christos # Kab Def <ke (at] zzz.uucp>, 2000.
     73  1.1  christos # Def Kab <dk (at] zzz.uucp>, 2001.
     74  1.1  christos #
     75  1.1  christos # #-#-#-#-#  mcat-test8.in2 (xyz)  #-#-#-#-#
     76  1.1  christos # German message file for xyz.
     77  1.1  christos # Copyright (C) 1999, 2000, 2001 xyz.
     78  1.1  christos # Kab Def <ke (at] zzz.uucp>, 2000.
     79  1.1  christos #
     80  1.1  christos #, fuzzy
     81  1.1  christos msgid ""
     82  1.1  christos msgstr ""
     83  1.1  christos "#-#-#-#-#  mcat-test8.in1 (xyz)  #-#-#-#-#\n"
     84  1.1  christos "Project-Id-Version: xyz\n"
     85  1.1  christos "POT-Creation-Date: 2001-11-11 12:51:34+0200\n"
     86  1.1  christos "PO-Revision-Date: 2001-11-11 13:02+02:00\n"
     87  1.1  christos "Last-Translator: Kab Def <ke (at] zzz.uucp>\n"
     88  1.1  christos "Language-Team: German <i18n (at] zzz.uucp>\n"
     89  1.1  christos "MIME-Version: 1.0\n"
     90  1.1  christos "Content-Type: text/plain; charset=ISO-8859-1\n"
     91  1.1  christos "Content-Transfer-Encoding: 8bit\n"
     92  1.1  christos "#-#-#-#-#  mcat-test8.in2 (xyz)  #-#-#-#-#\n"
     93  1.1  christos "Project-Id-Version: xyz\n"
     94  1.1  christos "POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
     95  1.1  christos "PO-Revision-Date: 2001-04-24 13:02+02:00\n"
     96  1.1  christos "Last-Translator: Kab Def <ke (at] zzz.uucp>\n"
     97  1.1  christos "Language-Team: German <i18n (at] zzz.uucp>\n"
     98  1.1  christos "MIME-Version: 1.0\n"
     99  1.1  christos "Content-Type: text/plain; charset=ISO-8859-1\n"
    100  1.1  christos "Content-Transfer-Encoding: 8bit\n"
    101  1.1  christos 
    102  1.1  christos #. Help text (HTML-like) START
    103  1.1  christos #: clients/inst_ask_config.ycp:119
    104  1.1  christos msgid "Congratulations!"
    105  1.1  christos msgstr "Glckwunsch!"
    106  1.1  christos EOF
    107  1.1  christos 
    108  1.1  christos : ${DIFF=diff}
    109  1.1  christos ${DIFF} mcat-test8.ok mcat-test8.out
    110  1.1  christos result=$?
    111  1.1  christos 
    112  1.1  christos rm -fr $tmpfiles
    113  1.1  christos 
    114  1.1  christos exit $result
    115