xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/tests/msguniq-4 (revision 7863ba460b0a05b553c754e5dbc29247dddec322)
1#! /bin/sh
2
3# Test general operation with Java .properties syntax.
4
5tmpfiles=""
6trap 'rm -fr $tmpfiles' 1 2 3 15
7
8tmpfiles="$tmpfiles msguniq-4.out"
9: ${MSGUNIQ-msguniq}
10${MSGUNIQ} --properties-input --properties-output -w 1000 -o msguniq-4.out ${top_srcdir}/tests/msguniq-a.inp
11test $? = 0 || { rm -fr $tmpfiles; exit 1; }
12
13tmpfiles="$tmpfiles msguniq-4.ok"
14: ${MSGCAT-msgcat}
15${MSGCAT} --properties-output -w 1000 -o msguniq-4.ok ${top_srcdir}/tests/msguniq-a.out
16test $? = 0 || { rm -fr $tmpfiles; exit 1; }
17
18: ${DIFF=diff}
19${DIFF} msguniq-4.ok msguniq-4.out
20result=$?
21
22rm -fr $tmpfiles
23
24exit $result
25