summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/msgfmt-3
blob: b0b2ed7f99458034fe28570134533468c42e1a69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/sh

tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15

tmpfiles="$tmpfiles mf-test3.po"
cat <<EOF >mf-test3.po
#
#       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#       xxxxxxxxxxxxxxxxxxxx
#
#       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
msgid   ""
msgstr  ""
EOF

tmpfiles="$tmpfiles mftest3.mo mftest3.err"
: ${MSGFMT=msgfmt}
LC_MESSAGES=C LC_ALL= \
${MSGFMT} mf-test3.po -o mftest3.mo >mftest3.err 2>&1
result=$?
cat mftest3.err | grep -v 'warning: Charset' | grep -v '^ '
test $result = 0 || { rm -fr $tmpfiles; exit 1; }

test ! -f mftest3.mo
result=$?

rm -fr $tmpfiles

exit $result