xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/tests/msgmerge-compendium-5 (revision 181254a7b1bdde6873432bffef2d2decc4b5c22f)
1#! /bin/sh
2
3# Test compendium option with a large compendium.
4
5tmpfiles=""
6trap 'rm -fr $tmpfiles' 1 2 3 15
7
8tmpfiles="$tmpfiles mm-c-5.out"
9: ${MSGMERGE=msgmerge}
10${MSGMERGE} -q -o mm-c-5.out \
11  --compendium ${top_srcdir}/tests/mm-viet.comp.po \
12  /dev/null ${top_srcdir}/tests/mm-viet.pot
13test $? = 0 || { rm -fr $tmpfiles; exit 1; }
14
15: ${DIFF=diff}
16${DIFF} ${top_srcdir}/tests/mm-viet.out mm-c-5.out
17result=$?
18
19rm -fr $tmpfiles
20
21exit $result
22