3
# Test general operation.
6
trap 'rm -fr $tmpfiles' 1 2 3 15
8
tmpfiles="$tmpfiles men-test1.po"
9
cat <<EOF > men-test1.po
14
"Content-Type: text/plain; charset=ASCII\n"
15
"Content-Transfer-Encoding: 8bit\n"
17
msgid "height must be positive"
20
msgid "color cannot be transparent"
21
msgstr "colour cannot be transparent"
23
msgid "width must be positive"
27
msgid_plural "%d errors"
32
tmpfiles="$tmpfiles men-test1.tmp men-test1.out"
34
${MSGEN} -o men-test1.tmp men-test1.po
35
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
36
LC_ALL=C tr -d '\r' < men-test1.tmp > men-test1.out
37
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
39
tmpfiles="$tmpfiles men-test1.ok"
40
cat <<EOF > men-test1.ok
45
"Content-Type: text/plain; charset=ASCII\n"
46
"Content-Transfer-Encoding: 8bit\n"
48
msgid "height must be positive"
49
msgstr "height must be positive"
51
msgid "color cannot be transparent"
52
msgstr "colour cannot be transparent"
54
msgid "width must be positive"
55
msgstr "width must be positive"
58
msgid_plural "%d errors"
64
${DIFF} men-test1.ok men-test1.out