Home | History | Annotate | Line # | Download | only in tests
      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.out"
      9 : ${MSGUNIQ-msguniq}
     10 ${MSGUNIQ} -w 1000 -o msguniq-1.out ${top_srcdir}/tests/msguniq-a.in
     11 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
     12 
     13 : ${DIFF=diff}
     14 ${DIFF} ${top_srcdir}/tests/msguniq-a.out msguniq-1.out
     15 result=$?
     16 
     17 rm -fr $tmpfiles
     18 
     19 exit $result
     20