summaryrefslogtreecommitdiffstats
path: root/tests/msguniq-1
blob: 17be1a0aff1103d64c05f9e50a5c3d3ab5fd207c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh

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

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

: ${DIFF=diff}
${DIFF} ${top_srcdir}/tests/msguniq-a.out msguniq-1.out
result=$?

rm -fr $tmpfiles

exit $result