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