tests: Make it easier to single-step the msgfmt-* tests.

* gettext-tools/tests/msgfmt-desktop-1: Assign a default to MSGFMT.
* gettext-tools/tests/msgfmt-desktop-2: Likewise.
* gettext-tools/tests/msgfmt-desktop-3: Likewise.
* gettext-tools/tests/msgfmt-xml-1: Likewise.
* gettext-tools/tests/msgfmt-xml-2: Likewise.
* gettext-tools/tests/msgfmt-xml-3: Likewise.
* gettext-tools/tests/msgfmt-xml-4: Likewise.
* gettext-tools/tests/msgfmt-xml-5: Likewise.
This commit is contained in:
Bruno Haible 2024-10-13 20:49:01 +02:00
parent 04d97e3918
commit 46e8f5c6ad
8 changed files with 13 additions and 0 deletions

View File

@ -67,6 +67,8 @@ Categories=
NoDisplay=true
EOF
: ${MSGFMT=msgfmt}
# Sanity checks for contradicting options.
${MSGFMT} --desktop --template=mf.desktop -l fr fr.po \

View File

@ -127,6 +127,8 @@ EOF
unset LINGUAS
: ${MSGFMT=msgfmt}
# Sanity checks for contradicting options.
${MSGFMT} --desktop --template=mf.desktop -d po -o mf.desktop.out \

View File

@ -59,6 +59,7 @@ EOF
# Generate the merged .desktop file.
: ${MSGFMT=msgfmt}
${MSGFMT} --desktop --template=hello.desktop -l th th.po -o hello.desktop.tmp \
|| Exit 1
LC_ALL=C tr -d '\r' < hello.desktop.tmp > hello.desktop.out || Exit 1

View File

@ -138,6 +138,8 @@ cat <<\EOF > mf.appdata.xml.ok
</component>
EOF
: ${MSGFMT=msgfmt}
# Sanity checks for contradicting options.
${MSGFMT} --xml --template=mf.appdata.xml -l fr fr.po \

View File

@ -247,6 +247,8 @@ EOF
unset LINGUAS
: ${MSGFMT=msgfmt}
# Sanity checks for contradicting options.
${MSGFMT} --xml --template=mf.appdata.xml -d po -o mf.appdata.xml.out \

View File

@ -214,6 +214,7 @@ EOF
unset LINGUAS
: ${MSGFMT=msgfmt}
${MSGFMT} --xml --template=mf.appdata.xml -d po -o mf.appdata.xml.out || Exit 1
: ${DIFF=diff}

View File

@ -124,6 +124,8 @@ cat <<\EOF > mf.appdata.xml.ok
</component>
EOF
: ${MSGFMT=msgfmt}
# Sanity checks for contradicting options.
${MSGFMT} --replace-text fr.po \

View File

@ -129,6 +129,7 @@ cat <<\EOF > activipy_tester.de.xml.ok
</refentry>
EOF
: ${MSGFMT=msgfmt}
${MSGFMT} --xml --template=activipy_tester.xml --replace-text -l de de.po -o activipy_tester.de.xml \
|| Exit 1