Imported Upstream version 0.18.1.1
[platform/upstream/gettext.git] / gettext-tools / tests / msguniq-1
1 #! /bin/sh
2
3 # Test general operation.
4
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
7
8 tmpfiles="$tmpfiles msguniq-1.tmp msguniq-1.out"
9 : ${MSGUNIQ-msguniq}
10 ${MSGUNIQ} -w 1000 -o msguniq-1.tmp ${top_srcdir}/tests/msguniq-a.in
11 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
12 LC_ALL=C tr -d '\r' < msguniq-1.tmp > msguniq-1.out
13 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
14
15 : ${DIFF=diff}
16 ${DIFF} ${top_srcdir}/tests/msguniq-a.out msguniq-1.out
17 result=$?
18
19 rm -fr $tmpfiles
20
21 exit $result