summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/msgfmt-qt-1
blob: 26b90a155e2e939ef2ca5e5d1e24550b4613e5b8 (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-qt-1.qm"
: ${MSGFMT=msgfmt}
${MSGFMT} --qt -o mf-qt-1.qm ${top_srcdir}/tests/qttest_pl.po
test $? = 0 || { rm -fr $tmpfiles; exit 1; }

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

rm -fr $tmpfiles

exit $result