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.out"
34 ${MSGEN} men-test1.po
-o men-test1.out
35 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
37 tmpfiles
="$tmpfiles men-test1.ok"
38 cat <<EOF > men-test1.ok
43 "Content-Type: text/plain; charset=ASCII\n"
44 "Content-Transfer-Encoding: 8bit\n"
46 msgid "height must be positive"
47 msgstr "height must be positive"
49 msgid "color cannot be transparent"
50 msgstr "colour cannot be transparent"
52 msgid "width must be positive"
53 msgstr "width must be positive"
56 msgid_plural "%d errors"
62 ${DIFF} men-test1.ok men-test1.out