Home | History | Annotate | Line # | Download | only in tests
      1  1.1  christos #! /bin/sh
      2  1.1  christos 
      3  1.1  christos # Test general operation.
      4  1.1  christos 
      5  1.1  christos tmpfiles=""
      6  1.1  christos trap 'rm -fr $tmpfiles' 1 2 3 15
      7  1.1  christos 
      8  1.1  christos tmpfiles="$tmpfiles msguniq-1.out"
      9  1.1  christos : ${MSGUNIQ-msguniq}
     10  1.1  christos ${MSGUNIQ} -w 1000 -o msguniq-1.out ${top_srcdir}/tests/msguniq-a.in
     11  1.1  christos test $? = 0 || { rm -fr $tmpfiles; exit 1; }
     12  1.1  christos 
     13  1.1  christos : ${DIFF=diff}
     14  1.1  christos ${DIFF} ${top_srcdir}/tests/msguniq-a.out msguniq-1.out
     15  1.1  christos result=$?
     16  1.1  christos 
     17  1.1  christos rm -fr $tmpfiles
     18  1.1  christos 
     19  1.1  christos exit $result
     20