msguniq-4   [plain text]


#! /bin/sh

# Test general operation with Java .properties syntax.

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

tmpfiles="$tmpfiles msguniq-4.out"
: ${MSGUNIQ-msguniq}
${MSGUNIQ} --properties-input --properties-output -w 1000 ${top_srcdir}/tests/msguniq-a.inp -o msguniq-4.out
test $? = 0 || { rm -fr $tmpfiles; exit 1; }

tmpfiles="$tmpfiles msguniq-4.ok"
: ${MSGCAT-msgcat}
${MSGCAT} --properties-output -w 1000 ${top_srcdir}/tests/msguniq-a.out -o msguniq-4.ok
test $? = 0 || { rm -fr $tmpfiles; exit 1; }

: ${DIFF=diff}
${DIFF} msguniq-4.ok msguniq-4.out
result=$?

rm -fr $tmpfiles

exit $result