xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/tests/msgcomm-17 (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1*946379e7Schristos#! /bin/sh
2*946379e7Schristos
3*946379e7Schristos# -u, --unique (equivalent to --less-than=2): we are interested in unique
4*946379e7Schristos# entries only (entries occuring less than 2 times).  But don't drop the
5*946379e7Schristos# header entry; otherwise msgcomm will fail for multibyte strings.
6*946379e7Schristos
7*946379e7Schristostmpfiles=""
8*946379e7Schristostrap 'rm -fr $tmpfiles' 1 2 3 15
9*946379e7Schristos
10*946379e7Schristostmpfiles="$tmpfiles mcomm-test17.in1 mcomm-test17.in2 mcomm-test17.in3"
11*946379e7Schristoscat <<EOF > mcomm-test17.in1
12*946379e7Schristosmsgid ""
13*946379e7Schristosmsgstr ""
14*946379e7Schristos"Project-Id-Version: GNU one 1.2.3\n"
15*946379e7Schristos"POT-Creation-Date: 2000-12-11 20:49+0100\n"
16*946379e7Schristos"PO-Revision-Date: 2000-03-18 15:25+01:00\n"
17*946379e7Schristos"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
18*946379e7Schristos"Language-Team: German <de@li.org>\n"
19*946379e7Schristos"MIME-Version: 1.0\n"
20*946379e7Schristos"Content-Type: text/plain; charset=ISO-8859-1\n"
21*946379e7Schristos"Content-Transfer-Encoding: 8bit\n"
22*946379e7Schristos
23*946379e7Schristos# occurs 3 times
24*946379e7Schristos#: first.c:123
25*946379e7Schristosmsgid "1"
26*946379e7Schristosmsgstr "1x"
27*946379e7SchristosEOF
28*946379e7Schristos
29*946379e7Schristoscat <<EOF > mcomm-test17.in2
30*946379e7Schristosmsgid ""
31*946379e7Schristosmsgstr ""
32*946379e7Schristos"Project-Id-Version: GNU one 1.2.3\n"
33*946379e7Schristos"POT-Creation-Date: 2000-12-11 20:49+0100\n"
34*946379e7Schristos"PO-Revision-Date: 2000-03-18 15:25+01:00\n"
35*946379e7Schristos"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
36*946379e7Schristos"Language-Team: German <de@li.org>\n"
37*946379e7Schristos"MIME-Version: 1.0\n"
38*946379e7Schristos"Content-Type: text/plain; charset=ISO-8859-1\n"
39*946379e7Schristos"Content-Transfer-Encoding: 8bit\n"
40*946379e7Schristos
41*946379e7Schristos#: hunt.c:759
42*946379e7Schristosmsgid "1"
43*946379e7Schristosmsgstr ""
44*946379e7SchristosEOF
45*946379e7Schristos
46*946379e7Schristoscat <<\EOF > mcomm-test17.in3
47*946379e7Schristosmsgid ""
48*946379e7Schristosmsgstr ""
49*946379e7Schristos"Project-Id-Version: GNU one 1.2.3\n"
50*946379e7Schristos"POT-Creation-Date: 2000-12-11 20:49+0100\n"
51*946379e7Schristos"PO-Revision-Date: 2000-03-18 15:25+01:00\n"
52*946379e7Schristos"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
53*946379e7Schristos"Language-Team: German <de@li.org>\n"
54*946379e7Schristos"MIME-Version: 1.0\n"
55*946379e7Schristos"Content-Type: text/plain; charset=ISO-8859-1\n"
56*946379e7Schristos"Content-Transfer-Encoding: 8bit\n"
57*946379e7Schristos
58*946379e7Schristos#: hunt.c:789
59*946379e7Schristosmsgid "1"
60*946379e7Schristosmsgstr ""
61*946379e7Schristos
62*946379e7Schristos# unique
63*946379e7Schristos#: hunt.c:890
64*946379e7Schristosmsgid "5"
65*946379e7Schristosmsgstr "f�nf"
66*946379e7SchristosEOF
67*946379e7Schristos
68*946379e7Schristostmpfiles="$tmpfiles mcomm-test17.out"
69*946379e7Schristos: ${MSGCOMM=msgcomm}
70*946379e7Schristos
71*946379e7Schristos${MSGCOMM} -u \
72*946379e7Schristos           -o mcomm-test17.out \
73*946379e7Schristos           mcomm-test17.in1 mcomm-test17.in2 mcomm-test17.in3
74*946379e7Schristostest $? = 0 || { rm -fr $tmpfiles; exit 1; }
75*946379e7Schristos
76*946379e7Schristostmpfiles="$tmpfiles mcomm-test17.ok"
77*946379e7Schristoscat << \EOF > mcomm-test17.ok
78*946379e7Schristosmsgid ""
79*946379e7Schristosmsgstr ""
80*946379e7Schristos"Project-Id-Version: GNU one 1.2.3\n"
81*946379e7Schristos"POT-Creation-Date: 2000-12-11 20:49+0100\n"
82*946379e7Schristos"PO-Revision-Date: 2000-03-18 15:25+01:00\n"
83*946379e7Schristos"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
84*946379e7Schristos"Language-Team: German <de@li.org>\n"
85*946379e7Schristos"MIME-Version: 1.0\n"
86*946379e7Schristos"Content-Type: text/plain; charset=ISO-8859-1\n"
87*946379e7Schristos"Content-Transfer-Encoding: 8bit\n"
88*946379e7Schristos
89*946379e7Schristos# unique
90*946379e7Schristos#: hunt.c:890
91*946379e7Schristosmsgid "5"
92*946379e7Schristosmsgstr "f�nf"
93*946379e7SchristosEOF
94*946379e7Schristos
95*946379e7Schristos: ${DIFF=diff}
96*946379e7Schristos${DIFF} mcomm-test17.ok mcomm-test17.out
97*946379e7Schristosresult=$?
98*946379e7Schristos
99*946379e7Schristosrm -fr $tmpfiles
100*946379e7Schristos
101*946379e7Schristosexit $result
102