#! /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 -o msguniq-4.out ${top_srcdir}/tests/msguniq-a.inp
test $? = 0 || { rm -fr $tmpfiles; exit 1; }

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

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

rm -fr $tmpfiles

exit $result
