xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/tests/msgcomm-23 (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1#! /bin/sh
2
3# "msgcomm INPUT INPUT" is equivalent to "msguniq INPUT"
4
5tmpfiles=""
6trap 'rm -fr $tmpfiles' 1 2 3 15
7
8tmpfiles="$tmpfiles mcomm-23.in1 mcomm-23.in2"
9cp ${top_srcdir}/tests/msguniq-a.in mcomm-23.in1
10cp ${top_srcdir}/tests/msguniq-a.in mcomm-23.in2
11
12tmpfiles="$tmpfiles mcomm-23.out"
13: ${MSGCOMM=msgcomm}
14${MSGCOMM} -w 1000 -o mcomm-23.out mcomm-23.in1 mcomm-23.in2
15test $? = 0 || { rm -fr $tmpfiles; exit 1; }
16
17: ${DIFF=diff}
18${DIFF} ${top_srcdir}/tests/msguniq-a.out mcomm-23.out
19result=$?
20
21rm -fr $tmpfiles
22
23exit $result
24