2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test of --csharp option.
6 # Test whether we can compile and execute C# programs.
7 test "${CSHARP_CHOICE}" != no || {
8 echo "Skipping test: configured with --disable-csharp"
11 test "${BUILDCSHARP}" = yes || {
12 echo "Skipping test: C# compiler not found"
15 test "${TESTCSHARP}" = yes || {
16 echo "Skipping test: C# engine not found"
20 test -d mu-cs-1 || mkdir mu-cs-1
22 cat <<\EOF > mu-cs-1/fr.po
25 "Content-Type: text/plain; charset=ISO-8859-1\n"
26 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
28 msgid "'Your command, please?', asked the waiter."
29 msgstr "«Votre commande, s'il vous plait», dit le garçon."
31 # Les gateaux allemands sont les meilleurs du monde.
33 msgid "a piece of cake"
34 msgid_plural "{0} pieces of cake"
35 msgstr[0] "un morceau de gateau"
36 msgstr[1] "{0} morceaux de gateau"
38 # Reverse the arguments.
40 msgid "{0} is replaced by {1}."
41 msgstr "{1} remplace {0}."
43 # A proximity measure.
54 GETTEXTCSHARPLIBDIR=../../../gettext-runtime/intl-csharp \
55 ${MSGFMT} --csharp -d mu-cs-1 -r prog -l fr mu-cs-1/fr.po || exit 1
57 : ${MSGUNFMT=msgunfmt}
58 GETTEXTCSHARPEXEDIR=../../src \
59 GETTEXTCSHARPLIBDIR=../../../gettext-runtime/intl-csharp \
60 ${MSGUNFMT} --csharp -d mu-cs-1 -r prog -l fr -o mu-cs-1/prog.out || exit 1
63 ${MSGCAT} -s -o mu-cs-1/prog.sort mu-cs-1/prog.out || exit 1
65 cat <<\EOF > mu-cs-1/prog.ok
68 "Content-Type: text/plain; charset=UTF-8\n"
69 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
71 msgid "'Your command, please?', asked the waiter."
72 msgstr "«Votre commande, s'il vous plait», dit le garçon."
81 msgid "a piece of cake"
82 msgid_plural "{0} pieces of cake"
83 msgstr[0] "un morceau de gateau"
84 msgstr[1] "{0} morceaux de gateau"
86 msgid "{0} is replaced by {1}."
87 msgstr "{1} remplace {0}."
90 ${DIFF} mu-cs-1/prog.ok mu-cs-1/prog.sort || exit 1