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

# Test output in Qt .qm format.

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

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

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

rm -fr $tmpfiles

exit $result