Home | History | Annotate | Line # | Download | only in tests
      1 #! /bin/sh
      2 
      3 # "msgcomm INPUT INPUT" is equivalent to "msguniq INPUT"
      4 
      5 tmpfiles=""
      6 trap 'rm -fr $tmpfiles' 1 2 3 15
      7 
      8 tmpfiles="$tmpfiles mcomm-23.in1 mcomm-23.in2"
      9 cp ${top_srcdir}/tests/msguniq-a.in mcomm-23.in1
     10 cp ${top_srcdir}/tests/msguniq-a.in mcomm-23.in2
     11 
     12 tmpfiles="$tmpfiles mcomm-23.out"
     13 : ${MSGCOMM=msgcomm}
     14 ${MSGCOMM} -w 1000 -o mcomm-23.out mcomm-23.in1 mcomm-23.in2
     15 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
     16 
     17 : ${DIFF=diff}
     18 ${DIFF} ${top_srcdir}/tests/msguniq-a.out mcomm-23.out
     19 result=$?
     20 
     21 rm -fr $tmpfiles
     22 
     23 exit $result
     24