summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/msgfmt-qt-2
blob: 1c6518b96eb2e520eb250e2c20fac0d5d61e2cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

# Test msgfmt --qt on a PO file with contexts.

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

tmpfiles="$tmpfiles mf-qt-2.qm"
: ${MSGFMT=msgfmt}
${MSGFMT} --qt ${top_srcdir}/tests/qttest2_de.po -o mf-qt-2.qm
test $? = 0 || { rm -fr $tmpfiles; exit 1; }

: ${CMP=cmp}
${CMP} ${top_srcdir}/tests/qttest2_de.qm mf-qt-2.qm >/dev/null 2>/dev/null
result=$?

rm -fr $tmpfiles

exit $result